Merge "Add IllegalStateException with packageName on null info" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e673774033
@@ -1110,6 +1110,10 @@ public final class LoadedApk {
|
|||||||
mPackageName,
|
mPackageName,
|
||||||
PackageManager.MATCH_DEBUG_TRIAGED_MISSING,
|
PackageManager.MATCH_DEBUG_TRIAGED_MISSING,
|
||||||
UserHandle.myUserId());
|
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
|
* Two possible indications that this package could be
|
||||||
* sharing its virtual machine with other packages:
|
* sharing its virtual machine with other packages:
|
||||||
|
|||||||
Reference in New Issue
Block a user