fix: Prevent Android java.lang.NullPointerException in InAppWebViewClient.onReceivedHttpAuthRequest view.getUrl()
This commit is contained in:
parent
0579de9f9c
commit
93d9b41ed8
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue