From 0c7b09e735537268df22d044cadb38935aa1227a 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 "