Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b9eaf7f authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am a2fcddd1: Merge "Better exceptions when LoadedApk fails." into jb-mr2-dev

* commit 'a2fcddd1':
  Better exceptions when LoadedApk fails.
parents 423f315a a2fcddd1
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -362,7 +362,12 @@ public final class LoadedApk {
        try {
            pi = pm.getPackageInfo(mPackageName, 0, UserHandle.myUserId());
        } catch (RemoteException e) {
            throw new AssertionError(e);
            throw new IllegalStateException("Unable to get package info for "
                    + mPackageName + "; is system dying?", e);
        }
        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