Fix the pesky nullPE on android 10+

This commit is contained in:
Boulay Mathias 2022-05-25 21:10:36 +02:00
parent dbe944abf9
commit ed65bb0138

View File

@ -113,7 +113,7 @@ public class FileListView extends LinearLayout
fileAdapter.add(new File(path, ".."));
}
if(listFile.length != 0){
if(listFile != null && listFile.length != 0){
Arrays.sort(listFile, new SortFileName());
if(fileSuffixes.length > 0){ //Meaning we want only specific files
for(File file : listFile){