Merge pull request #1975 from mfietz/issue/1971-storageerror-npe
StorageErrorActivity: Prevent NPE
This commit is contained in:
commit
b67d91374a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue