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

Commit fcad49a4 authored by Richard Uhler's avatar Richard Uhler
Browse files

Avoid NPE if session path hasn't been resolved.

Bug: 128432016
Test: atest RollbackTest
Change-Id: I36e99cf962c13051d94ef581cb0919f0fb44706a
parent 10b249f5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -872,6 +872,11 @@ class RollbackManagerServiceImpl extends IRollbackManager.Stub {
            return false;
        }

        if (session.resolvedBaseCodePath == null) {
            Log.e(TAG, "Session code path has not been resolved.");
            return false;
        }

        // Get information about the package to be installed.
        PackageParser.PackageLite newPackage = null;
        try {