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

Commit 8b68b8ca authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Fix NPE in FileSystemProvider.

In case we can't get the contents of a directory.

Bug: 148836274
Test: No NPE
Change-Id: If896423f7788b614780cd7a07ffc75e25efc6ec5
parent a8c6c8b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -430,7 +430,7 @@ public abstract class FileSystemProvider extends DocumentsProvider {
            if (shouldHide(file)) continue;

            if (file.isDirectory()) {
                for (File child : file.listFiles()) {
                for (File child : FileUtils.listFilesOrEmpty(file)) {
                    pending.add(child);
                }
            }