mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Proper fix for Android launcher nullptr dereference
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user