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

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

Merge "DO NOT MERGE Fix NPE in executeDeletePackageLIF." into rvc-dev

parents bc86158b 01e0f481
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19198,7 +19198,8 @@ public class PackageManagerService extends IPackageManager.Stub
        // We need to get the permission state before package state is (potentially) destroyed.
        final SparseBooleanArray hadSuspendAppsPermission = new SparseBooleanArray();
        for (int userId : allUserHandles) {
        // allUserHandles could be null, so call mUserManager.getUserIds() directly which is cached anyway.
        for (int userId : mUserManager.getUserIds()) {
            hadSuspendAppsPermission.put(userId, checkPermission(Manifest.permission.SUSPEND_APPS,
                    packageName, userId) == PERMISSION_GRANTED);
        }