Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d48788c1 authored by Robin Lee's avatar Robin Lee
Browse files

DPMS organisation API - Add a missing checkNotNull

Corrects a failing test.

Change-Id: I6be8a23caef53d1e9681733e5b340237952bd3e5
parent 1f42e989
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7721,6 +7721,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);