1
0
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:
Ivan Savenko 2023-08-07 16:53:51 +03:00
parent 1826e990d1
commit b5fc0f19f2

View File

@ -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;