Merge pull request #5285 from osmandapp/PaulsBranch
Fixed crash due to null region name
This commit is contained in:
commit
c503a4e56a
1 changed files with 5 additions and 1 deletions
|
@ -242,7 +242,11 @@ public class WikivoyageWebViewClient extends WebViewClient implements RegionCall
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(osmandRegions.contain(b, x31, y31)) {
|
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