Skip to content

Commit

Permalink
fix: Prevent Android java.lang.NullPointerException in InAppWebViewCl…
Browse files Browse the repository at this point in the history
…ient.onReceivedHttpAuthRequest view.getUrl()
  • Loading branch information
kamilpowalowski committed Oct 5, 2022
1 parent 0579de9 commit 93d9b41
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ public void onReceivedHttpAuthRequest(final WebView view, final HttpAuthHandler

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

Expand Down

0 comments on commit 93d9b41

Please sign in to comment.