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

Commit 92bc9b31 authored by Kenny Root's avatar Kenny Root
Browse files

PMS: check outInfo for null during delete

It appears that changing an application's signature during boot can pass
an outInfo of null to this function.

Bug: 7402550
Change-Id: I839fea6c8ee728a352c6b906f0fa6671c85f8694
parent 56e75631
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8291,7 +8291,7 @@ public class PackageManagerService extends IPackageManager.Stub {
        removePackageDataLI(ps, outInfo, flags, writeSettings);

        // Delete application code and resources
        if (deleteCodeAndResources) {
        if (deleteCodeAndResources && (outInfo != null)) {
            outInfo.args = createInstallArgs(packageFlagsToInstallFlags(ps), ps.codePathString,
                    ps.resourcePathString, ps.nativeLibraryPathString);
        }