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

Commit 0ae9570c authored by Svet Ganov's avatar Svet Ganov Committed by Svetoslav Ganov
Browse files

Add a missing null check

Test: manual

bug::62755026

Change-Id: Icf719d0e62986febd4d31f22be3e59d83c8e6e09
parent 39cc33f1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4004,6 +4004,9 @@ public class PackageManagerService extends IPackageManager.Stub
        // reader
        synchronized (mPackages) {
            final BasePermission p = mSettings.mPermissions.get(name);
            if (p == null) {
                return null;
            }
            // If the caller is an app that targets pre 26 SDK drop protection flags.
            final PermissionInfo permissionInfo = generatePermissionInfo(p, flags);
            if (permissionInfo != null) {