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

Commit 933e6503 authored by Jonathan Scott's avatar Jonathan Scott
Browse files

Remove incorrect checkNotNull.

Test: btest a.d.c.ApplicationRestrictionsTest
Change-Id: I1307f859774f781d324c41c2f466f75d7df3e891
parent 3a7b0440
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -11324,7 +11324,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            setBackwardsCompatibleAppRestrictions(
                    packageName, restrictions, caller.getUserHandle());
        } else {
            Objects.requireNonNull(who, "ComponentName is null");
            Preconditions.checkCallAuthorization((caller.hasAdminComponent()
                    && (isProfileOwner(caller) || isDefaultDeviceOwner(caller)))
                    || (caller.hasPackage() && isCallerDelegate(caller,