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

Commit 31740877 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when calling getResolvedBaseApkPath()" into udc-qpr-dev

parents 60bda9ff 6f8534b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -366,7 +366,7 @@ public class PackageInstallerActivity extends AlertActivity {
            final int sessionId = intent.getIntExtra(PackageInstaller.EXTRA_SESSION_ID,
                    -1 /* defaultValue */);
            final SessionInfo info = mInstaller.getSessionInfo(sessionId);
            String resolvedPath = info.getResolvedBaseApkPath();
            String resolvedPath = info != null ? info.getResolvedBaseApkPath() : null;
            if (info == null || !info.isSealed() || resolvedPath == null) {
                Log.w(TAG, "Session " + mSessionId + " in funky state; ignoring");
                finish();