diff --git a/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java b/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java index 4480c06..b3240a0 100644 --- a/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java +++ b/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java @@ -1020,7 +1020,9 @@ public class RNCWebViewManager extends SimpleViewManager { @Override public void setWebViewClient(WebViewClient client) { super.setWebViewClient(client); - mRNCWebViewClient = (RNCWebViewClient) client; + if (client instanceof RNCWebViewClient) { + mRNCWebViewClient = (RNCWebViewClient) client; + } } public @Nullable