From b4264077c47af4c8beb2b1493b7c09be6b46a129 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Wed, 13 Jan 2021 10:34:50 +0200 Subject: [PATCH] Fix open on map npe --- .../src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java index f9f3016725..beafb51ec4 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageWebViewClient.java @@ -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 points = article.getGpxFile().getPoints(); WptPt gpxPoint = null; String coordinates = url.replace(PREFIX_GEO, "");