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

Commit 5bcadd3c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE with missing DPMI"

parents a85bab4c f7d5bc12
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2846,8 +2846,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
        if (!uidMatchPackage) {
            return false;   // callingPackage was faked.
        }
        if (LocalServices.getService(DevicePolicyManagerInternal.class)
                .isDeviceOrProfileOwnerInCallingUser(callingPackage)) {
        final DevicePolicyManagerInternal dpmi =
                LocalServices.getService(DevicePolicyManagerInternal.class);
        if (dpmi != null && dpmi.isDeviceOrProfileOwnerInCallingUser(callingPackage)) {
            return true;
        }
        final int callingUserId = UserHandle.getCallingUserId();