From ab9650b50f0a0544110bb780c7bd35885190bb89 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Thu, 29 Feb 2024 15:43:11 +0100 Subject: [PATCH] fix(android): let WebView handle errors (#7286) --- .../src/main/java/com/getcapacitor/WebViewLocalServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/capacitor/src/main/java/com/getcapacitor/WebViewLocalServer.java b/android/capacitor/src/main/java/com/getcapacitor/WebViewLocalServer.java index 6e5d1049c..b0e4c26a3 100755 --- a/android/capacitor/src/main/java/com/getcapacitor/WebViewLocalServer.java +++ b/android/capacitor/src/main/java/com/getcapacitor/WebViewLocalServer.java @@ -184,6 +184,7 @@ public WebResourceResponse shouldInterceptRequest(WebResourceRequest request) { return handleCapacitorHttpRequest(request); } catch (Exception e) { Logger.error(e.getLocalizedMessage()); + return null; } }