Merge "Avoid NPE when deleting package during boot." into nyc-dev

This commit is contained in:
Jeff Sharkey
2016-02-28 00:25:25 +00:00
committed by Android (Google) Code Review

View File

@@ -14747,7 +14747,7 @@ public class PackageManagerService extends IPackageManager.Stub {
return false;
}
if (ps.pkg.parentPackage != null && (!isSystemApp(ps)
if (ps.pkg != null && ps.pkg.parentPackage != null && (!isSystemApp(ps)
|| (flags & PackageManager.DELETE_SYSTEM_APP) != 0)) {
if (DEBUG_REMOVE) {
Slog.d(TAG, "Uninstalled child package:" + packageName + " for user:"