Prevent NPE
This commit is contained in:
parent
1048735327
commit
cc06722f7e
|
@ -189,6 +189,9 @@ public class StorageErrorActivity extends AppCompatActivity {
|
||||||
} else {
|
} else {
|
||||||
path = getExternalFilesDir(null);
|
path = getExternalFilesDir(null);
|
||||||
}
|
}
|
||||||
|
if(path == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
String message = null;
|
String message = null;
|
||||||
if(!path.exists()) {
|
if(!path.exists()) {
|
||||||
message = String.format(getString(R.string.folder_does_not_exist_error), dir);
|
message = String.format(getString(R.string.folder_does_not_exist_error), dir);
|
||||||
|
|
Loading…
Reference in New Issue