-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
java.lang.Double.doubleValue()' on a null object reference #19413
Comments
It looks like your issue may be incomplete. Are all the fields required by the Issue Template filled out? If you believe your issue contains all the relevant information, let us know in order to have a maintainer remove the |
Please use Stack Overflow for this type of question. |
I am also facing this issue in production. |
This is a React Native issue. It has something to do with the bridge, state changes and updating the UI. I changed the order in which I set the state an call native methods and the error does not occur anymore. |
+1 |
8 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1. @tapz, to clarify are you referring to redux state? Could you supply more specifics on your fix please? |
Nevermind, seems to be more discussion on this in #19423. Would be awesome to understand more details of your fix there. |
@seanmorton Obsiously, I'm referring to React Component (local) state, which makes the component to update. |
Thanks for the clarification! |
I "fixed" the problem by making sure status bar color in ReactNative same as the status bar color in Android theme |
+1 |
This error happened to me when I used a bridge in the wrong way, causing the error, for example, to use the toastAndroid.show ('....') without passing the time |
I have this error when I pass |
guys how are you debugging such crashes? is there a way to catch native errors? |
the second param must be a Double or Int , not a String |
i solved it in react native with redux and problem was related to style of store new state for redux ... for this bug you must first get instance of state in redux reducer like this :: const newState = state; and then change and return it:: newState.check = true; return newState; bug did fix for me after 24 hours trying ... |
That was my mistake, I forgot the duration for the |
I'm facing this error on android, after upgrade to RN 0.58.2 ... Any help? |
For me the issue was using
I also raised an issue (#23193). |
@abendi, make sense. Matter fact, I'm using |
Also facing a similar one to this using Axios, did somebody fixed or found a work around for this? [edit] It was raised by axios, but giving it a timeout (like 500) in it's own config fixed the issue. Weird. |
+1 |
My Envirment: I have got this problem too! After half-day debugging, I thoungt that when the first time this bug occur, I ran So I delete all the cache files/dirs in home/.gradle/cache (On windows, it's %USERPROFILE%.gradle\cache) and run react-native run-android again, this bug gone away! Good Luck! |
Received this to Crashlytics. RN does not provide any information, which would help to find the cause of this (unless it is actually a bug in RN).
The text was updated successfully, but these errors were encountered: