Merge "Add IllegalStateException with packageName on null info" into sc-dev am: e673774033

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13818502

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3b8b9c3074412f4fb91a665b409b064c33049064
This commit is contained in:
Patrick Baumann
2021-03-10 21:16:43 +00:00
committed by Automerger Merge Worker

View File

@@ -1110,6 +1110,10 @@ public final class LoadedApk {
mPackageName,
PackageManager.MATCH_DEBUG_TRIAGED_MISSING,
UserHandle.myUserId());
if (pi == null) {
throw new IllegalStateException("Unable to get package info for "
+ mPackageName + "; is package not installed?");
}
/*
* Two possible indications that this package could be
* sharing its virtual machine with other packages: