fix: Potential NPE when handling generic exceptions (#1878)

This commit is contained in:
Norman Breau
2026-01-08 16:14:28 -04:00
committed by GitHub
parent eaca570cb6
commit 7a353fe81d
2 changed files with 2 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ public class SystemWebViewClient extends WebViewClient {
return new WebResourceResponse(mimeType, null, is);
} catch (Exception e) {
e.printStackTrace();
LOG.e(TAG, e.getMessage());
LOG.e(TAG, "Exception handling Web resource at \"" + path + "\"", e);
}
return null;
});

View File

@@ -317,7 +317,7 @@ public class SystemWebViewEngine implements CordovaWebViewEngine {
try {
webView.getContext().unregisterReceiver(receiver);
} catch (Exception e) {
LOG.e(TAG, "Error unregistering configuration receiver: " + e.getMessage(), e);
LOG.e(TAG, "Error unregistering configuration receiver", e);
}
}
}