Merge "Fix system server crash during sendMyPackageSuspendedOrUnsuspended()"

This commit is contained in:
TreeHugger Robot
2020-12-03 01:14:37 +00:00
committed by Android (Google) Code Review

View File

@@ -13939,7 +13939,7 @@ public class PackageManagerService extends IPackageManager.Stub
synchronized (mLock) {
final PackageSetting ps = mSettings.mPackages.get(packageName);
if (ps == null) {
throw new IllegalArgumentException("Unknown target package: " + packageName);
return null;
}
final PackageUserState pus = ps.readUserState(userId);
final Bundle allExtras = new Bundle();