mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-28 05:45:03 -06:00
Handle null pointer in Tools.lastFileModified()
Fixes #2883 Fixes #2958 Fixes #2959
This commit is contained in:
parent
eedfd54d12
commit
252b5e0471
1 changed files with 3 additions and 0 deletions
|
|
@ -663,6 +663,9 @@ public final class Tools {
|
|||
File fl = new File(dir);
|
||||
|
||||
File[] files = fl.listFiles(File::isFile);
|
||||
if (files == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
long lastMod = Long.MIN_VALUE;
|
||||
File choice = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue