Skip to content

Conversation

@nitinkumarnk-me
Copy link

Fix Android crash when Promise.reject receives null code

RNFS may call Promise.reject() with a null code parameter, which causes a
NullPointerException in PromiseImpl.reject on Android.

This patch ensures a non-null error code is always provided when rejecting
promises, preventing native crashes without changing JS behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant