Prevent NPE

This commit is contained in:
Martin Fietz 2016-06-03 11:39:43 +02:00
parent 1048735327
commit cc06722f7e
1 changed files with 3 additions and 0 deletions

View File

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