Merge "Add null pointer check to getStopped" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-21 23:27:12 +00:00
committed by Android (Google) Code Review

View File

@@ -23351,7 +23351,7 @@ public class PackageManagerService extends IPackageManager.Stub
// writer
synchronized (mLock) {
final PackageSetting ps = mSettings.getPackageLPr(packageName);
if (ps.getStopped(userId) && !stopped) {
if (ps != null && ps.getStopped(userId) && !stopped) {
shouldUnhibernate = true;
}
if (!shouldFilterApplicationLocked(ps, callingUid, userId)