Fix open on map npe

This commit is contained in:
Dima-1 2021-01-13 10:34:50 +02:00
parent 469e2e6ee7
commit b4264077c4

View file

@ -87,7 +87,7 @@ public class WikivoyageWebViewClient extends WebViewClient {
} else if (isWebPage) {
WikiArticleHelper.warnAboutExternalLoad(url, activity, nightMode);
} else if (url.startsWith(PREFIX_GEO)) {
if (article != null) {
if (article != null && article.getGpxFile() != null) {
List<WptPt> points = article.getGpxFile().getPoints();
WptPt gpxPoint = null;
String coordinates = url.replace(PREFIX_GEO, "");