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

Commit 7767df3c authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Fix crash if package setting is not populated yet" into lmp-dev

parents c50e7e84 43789f56
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -13035,6 +13035,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) {