diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_webview/InAppWebViewClient.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_webview/InAppWebViewClient.java index 68d0e0b0..86e31013 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_webview/InAppWebViewClient.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/in_app_webview/InAppWebViewClient.java @@ -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();