-
Notifications
You must be signed in to change notification settings - Fork 585
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
in react native with realm 10.19.3 crashes when one or some of object properties has null value #4682
Comments
Hey @takanorihirai. Sorry to hear you are having issues. Could you please let me know what the following command outputs (run from your project root)?
|
@tomduncalf , thanks to reply.
the latest one. |
i'm avoiding error and crash with patch as a makeshift :
|
Thanks @takanorihirai! I've created a PR with the fix, which we will get into a release soon |
How frequently does the bug occur?
Sometimes
Description
on realm 10.19.3, react native app crashes with errors:
trace screen shows the location:
node_modules/realm/lib/extensions.js line 117
https://github.com/realm/realm-js/blob/v10.19.3/lib/extensions.js#L117
when one or some of properties of realm object is null, value of the 'extensions.js' is also null, so it maybe cause error.
i tried in a source so the properties of object has no null value,escaped crash ,
but other source calls other realm object which has null property, and cause same crash.
solution maybe (but it's not maybe smart) :
https://github.com/realm/realm-js/blob/v10.19.3/lib/extensions.js#L106
versions in package.json of project:
Stacktrace & log output
...
"react-redux": "^7.2.6",
"react-statics-styles": "^3.1.0",
"react-tween-state": "^0.1.5",
"react-use": "^17.4.0",
"realm": "^10.19.3",
"redux": "^4.1.2",
"redux-persist": "^6.0.0",
"redux-saga": "^1.1.3",
The text was updated successfully, but these errors were encountered: