From 4c8f2293f5d547c3da444561eee2e2915ffc999b Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 29 Mar 2016 09:52:31 +0200 Subject: [PATCH] add crashfix for android 6 --- .../com/simplemobiletools/gallery/activities/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java index cf8af8b7f..7f266fc5f 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java @@ -164,7 +164,7 @@ public class MainActivity extends AppCompatActivity } private void deleteDirs() { - if (toBeDeleted.isEmpty()) + if (toBeDeleted == null || toBeDeleted.isEmpty()) return; if (snackbar != null) {