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) {