From aca0ed1b5de3e5610f2f31bc3a98ba1b69071712 Mon Sep 17 00:00:00 2001 From: cepprice Date: Thu, 11 Feb 2021 15:18:02 +0500 Subject: [PATCH] Fix NPE --- .../osmand/plus/track/GpxReadDescriptionDialogFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/track/GpxReadDescriptionDialogFragment.java b/OsmAnd/src/net/osmand/plus/track/GpxReadDescriptionDialogFragment.java index b652c7a3bd..2a45e23d58 100644 --- a/OsmAnd/src/net/osmand/plus/track/GpxReadDescriptionDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/track/GpxReadDescriptionDialogFragment.java @@ -200,7 +200,9 @@ public class GpxReadDescriptionDialogFragment extends BaseOsmAndDialogFragment { @Override public void onPageCommitVisible(WebView webView, String url) { super.onPageCommitVisible(webView, url); - setupDependentViews(view); + if (getActivity() != null) { + setupDependentViews(view); + } } }); loadWebviewData();