Merge "DPMS organisation API - Add a missing checkNotNull"

This commit is contained in:
Robin Lee
2016-01-25 18:02:40 +00:00
committed by Android (Google) Code Review

View File

@@ -7895,6 +7895,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
if (!mHasFeature || !isManagedProfile(userHandle)) {
return ActiveAdmin.DEF_ORGANIZATION_COLOR;
}
Preconditions.checkNotNull(who, "ComponentName is null");
synchronized (this) {
ActiveAdmin admin = getActiveAdminForCallerLocked(who,
DeviceAdminInfo.USES_POLICY_PROFILE_OWNER);