mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
Proper fix for Android launcher nullptr dereference
This commit is contained in:
parent
1826e990d1
commit
b5fc0f19f2
@ -99,7 +99,7 @@ public class FileUtil
|
||||
|
||||
public static boolean clearDirectory(final File dir)
|
||||
{
|
||||
if (dir == null)
|
||||
if (dir == null || dir.listFiles() == null)
|
||||
{
|
||||
Log.e("Broken path given to fileutil::clearDirectory");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user