From 32904c24d48a681b0e6318723ecdb77c04fc8cf5 Mon Sep 17 00:00:00 2001 From: Alex Hendrix Date: Fri, 19 Apr 2024 15:46:34 -0500 Subject: [PATCH] Adding ClassCastException to possible Exceptions that unwind additional module call information --- .../main/java/com/facebook/react/bridge/JavaMethodWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.java index daa3eaca785272..d312648f9f4527 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.java @@ -356,7 +356,7 @@ public void invoke(JSInstance jsInstance, ReadableArray parameters) { mArgumentExtractors[i].extractArgument(jsInstance, parameters, jsArgumentsConsumed); jsArgumentsConsumed += mArgumentExtractors[i].getJSArgumentsNeeded(); } - } catch (UnexpectedNativeTypeException | NullPointerException e) { + } catch (UnexpectedNativeTypeException | NullPointerException | ClassCastException e) { throw new NativeArgumentsParseException( e.getMessage() + " (constructing arguments for "