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

Commit e4d1cabe authored by android-build-team Robot's avatar android-build-team Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix an NPE in PackageManagerService (introduced by ag/3819668)" into pi-dev

parents f8e6e7f5 e7945bef
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -22462,9 +22462,13 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
        }
        final String volumeUuid = pkg.volumeUuid;
        final String packageName = pkg.packageName;
        final ApplicationInfo app = (ps == null)
        ApplicationInfo app = (ps == null)
                ? pkg.applicationInfo
                : PackageParser.generateApplicationInfo(pkg, 0, ps.readUserState(userId), userId);
        if (app == null) {
            app = pkg.applicationInfo;
        }
        final int appId = UserHandle.getAppId(app.uid);