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,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();