Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCTBridge crashes in release build when moduleID or methodID is not found #1114

Closed
artemyarulin opened this issue May 3, 2015 · 2 comments
Closed
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@artemyarulin
Copy link

Hi,

In the RCTBridge.enqueueJSCall we have asserts that checks that moduleID and methodID are never null, however in a release build they will be skipped, so we will end up with a crash because arguments array cannot be created with null values.

@artemyarulin
Copy link
Author

Here the pull request that fixes this issue. While I'm a bit concerned how we can create a unit-test for that.

And actually the bigger question is - should it be fixed? If yes, then we have to go through all RCTAssert and check that in never fails afterwards, but at the same time the whole point of RCTAssert is to tell that we faced unexpected. What it is your thoughts about it?

Thanks

@brentvatne
Copy link
Collaborator

Awesome, thanks for the report and patch @artemyarulin! Closing this issue as the discussion is being tracked in the PR now. 🚀

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants