Merge pull request #10834 from osmandapp/fix_npe

Fix NPE
This commit is contained in:
Vitaliy 2021-02-11 12:21:00 +02:00 committed by GitHub
commit 8646726963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,8 +200,10 @@ public class GpxReadDescriptionDialogFragment extends BaseOsmAndDialogFragment {
@Override @Override
public void onPageCommitVisible(WebView webView, String url) { public void onPageCommitVisible(WebView webView, String url) {
super.onPageCommitVisible(webView, url); super.onPageCommitVisible(webView, url);
if (getActivity() != null) {
setupDependentViews(view); setupDependentViews(view);
} }
}
}); });
loadWebviewData(); loadWebviewData();
} }