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

Commit 43789f56 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix crash if package setting is not populated yet

Bug: 17388687
Change-Id: I441ec37396a3b725a79b933a182c63fbe52d5646
parent b10e39e7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -13018,6 +13018,9 @@ public class PackageManagerService extends IPackageManager.Stub {
        Iterator<PackageSetting> psit = mSettings.mPackages.values().iterator();
        while (psit.hasNext()) {
            PackageSetting ps = psit.next();
            if (ps.pkg == null) {
                continue;
            }
            final String packageName = ps.pkg.packageName;
            // Skip over if system app
            if ((ps.pkgFlags & ApplicationInfo.FLAG_SYSTEM) != 0) {