Bugfix: adds extra null check
Bug: 16976436 Change-Id: Id51fd3125b4e68ff7c0ec37ec031fcb8ff882ed4
This commit is contained in:
@@ -3195,7 +3195,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
if (fromSource != null) {
|
||||
packageNames = fromSource.get(targetUserId);
|
||||
}
|
||||
if (packageNames.contains(intent.getPackage())) {
|
||||
if (packageNames != null && packageNames.contains(intent.getPackage())) {
|
||||
return true;
|
||||
}
|
||||
// We need the package name, so we try to resolve with the loosest flags possible
|
||||
|
||||
Reference in New Issue
Block a user