Fix NPE
This commit is contained in:
parent
b46a4c5e91
commit
93df487714
1 changed files with 1 additions and 1 deletions
|
@ -1320,7 +1320,7 @@ public class OsmandSettings {
|
||||||
} else {
|
} else {
|
||||||
File[] externals = ctx.getExternalFilesDirs(null);
|
File[] externals = ctx.getExternalFilesDirs(null);
|
||||||
for (File file : externals) {
|
for (File file : externals) {
|
||||||
if (!file.getAbsolutePath().contains("emulated")) {
|
if (file != null && !file.getAbsolutePath().contains("emulated")) {
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue