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

Commit 6f8534b9 authored by Joanne Chung's avatar Joanne Chung Committed by Sumedh Sen
Browse files

Fix NPE when calling getResolvedBaseApkPath()

Bug: 303664085
Change-Id: Ib9640ff70240710a6c6571f8b0881436724372fc
Test: manual
parent f02cd2e2
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();