From 286b69460f1227a75a9865f91fb51c455fd4370e 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 7dd732da75..8d31c4b73f 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; } }