Merge "Add null pointer check to getStopped" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b0d7c12dd2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user