diff --git a/OsmAnd/src/net/osmand/plus/track/GpxReadDescriptionDialogFragment.java b/OsmAnd/src/net/osmand/plus/track/GpxReadDescriptionDialogFragment.java index ed121dd681..1aad2dd87d 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();