Fixed crash due to null region name
This commit is contained in:
parent
d859aa170a
commit
4bfbf0ab5e
1 changed files with 5 additions and 1 deletions
|
@ -242,7 +242,11 @@ public class WikivoyageWebViewClient extends WebViewClient implements RegionCall
|
|||
break;
|
||||
}
|
||||
if(osmandRegions.contain(b, x31, y31)) {
|
||||
return osmandRegions.getLocaleName(osmandRegions.getDownloadName(b), false);
|
||||
String downloadName = osmandRegions.getDownloadName(b);
|
||||
if (downloadName == null) {
|
||||
return "";
|
||||
}
|
||||
return osmandRegions.getLocaleName(downloadName, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue