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

Commit 96ade879 authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Add a null check.

Apparently install source might be missing for some packages.

Bug: 313068588
Test: presubmit
Change-Id: Id5db303b74979976e218528278ee9736a3101a1e
parent 1dfd11dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1379,9 +1379,9 @@ public class PackageManagerService implements PackageSender, TestUtilityService

        final InstallSourceInfo installSourceInfo = snapshot.getInstallSourceInfo(packageName,
                userId);
        final String initiatingPackageName = installSourceInfo.getInitiatingPackageName();
        final String installerPackageName;
        if (installSourceInfo != null) {
            final String initiatingPackageName = installSourceInfo.getInitiatingPackageName();
            if (!isInstalledByAdb(initiatingPackageName)) {
                installerPackageName = initiatingPackageName;
            } else {