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.

Copy link

@OmarMohammedFoad OmarMohammedFoad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see that this solution in my case

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.

3 participants