From cc06722f7e01aa298a9d987ba1eafaccaaf06b01 Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Fri, 3 Jun 2016 11:39:43 +0200 Subject: [PATCH] Prevent NPE --- .../de/danoeh/antennapod/activity/StorageErrorActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java index f22507f4c..81d727283 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/StorageErrorActivity.java @@ -189,6 +189,9 @@ public class StorageErrorActivity extends AppCompatActivity { } else { path = getExternalFilesDir(null); } + if(path == null) { + return; + } String message = null; if(!path.exists()) { message = String.format(getString(R.string.folder_does_not_exist_error), dir);