mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -04:00
Fix the pesky nullPE on android 10+
This commit is contained in:
parent
dbe944abf9
commit
ed65bb0138
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user