fix: Prevent Android java.lang.NullPointerException in InAppWebViewClient.onReceivedHttpAuthRequest view.getUrl()

This commit is contained in:
Kamil Powałowski 2022-06-27 16:58:12 +02:00
parent 0579de9f9c
commit 93d9b41ed8
1 changed files with 3 additions and 1 deletions

View File

@ -331,7 +331,9 @@ public class InAppWebViewClient extends WebViewClient {
URI uri;
try {
uri = new URI(view.getUrl());
String url = view.getUrl();
if (url == null) return;
uri = new URI(url);
} catch (URISyntaxException e) {
e.printStackTrace();