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

Commit e107fae2 authored by Steve Kondik's avatar Steve Kondik
Browse files

Don't NPE if the requested app dir doesn't exist.

parent 9e109249
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -1877,8 +1877,8 @@ class PackageManagerService extends IPackageManager.Stub {

        String[] files = dir.list();

        int i;
        for (i=0; i<files.length; i++) {
        if (files != null) {
            for (int i=0; i<files.length; i++) {
                File file = new File(dir, files[i]);
                File resFile = file;
                // Pick up the resource path from settings for fwd locked apps
@@ -1889,6 +1889,7 @@ class PackageManagerService extends IPackageManager.Stub {
                        flags|PackageParser.PARSE_MUST_BE_APK, scanMode);
            }
        }
    }

    private static void reportSettingsProblem(int priority, String msg) {
        try {