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

Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference #11

Closed
jarrodls opened this issue Aug 2, 2018 · 2 comments

Comments

@jarrodls
Copy link

jarrodls commented Aug 2, 2018

Hey, I get this error randomly when using this component, the error happens like 4/5 times but if I keep reloading it eventually it will work, not too sure what the problem is. The text is there and seeing as it seems to work sometimes i'm not sure what the issue is.

This is on an Android TV as well.

React Native Info

Environment:
OS: Windows 10
Node: 9.10.0
Yarn: 1.7.0
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.1.0.0 AI-173.4819257

Packages: (wanted => installed)
react: 16.4.1 => 16.4.1
react-native: ^0.55.4 => 0.55.4

@jarrodls jarrodls changed the title Attempt to invoke virtual method 'double java.lang.Doube.doubeValue()' on a null object reference Attempt to invoke virtual method 'double java.lang.Doube.doubleValue()' on a null object reference Aug 2, 2018
@jarrodls jarrodls changed the title Attempt to invoke virtual method 'double java.lang.Doube.doubleValue()' on a null object reference Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference Aug 2, 2018
@deanhet
Copy link
Owner

deanhet commented Aug 2, 2018

I've had a search around and it seems like a lot of people are having your issue. facebook/react-native#19413

Unfortunately, it seems like Android is not maintained as well as iOS when it comes to React-Native. I'm starting to come up against this myself, the native-bridge just isn't as sturdy.

I plan on doing some work in the future to 'fix' this but right now I can't do much to combat it.
Sorry it's not the answer you wanted to hear.

@deanhet deanhet closed this as completed Aug 2, 2018
@danielalvesrs
Copy link

danielalvesrs commented Jan 22, 2019

The problem is that we do not have the exact location of the error.
I had a line like this:
StatusBar.setBackgroundColor ('DA552F');
I forgot the #! That was enough to cause the error.
I fixed it to StatusBar.setBackgroundColor ('# DA552F') and started working.
Lots of attention to detail like this. It takes a lot to find.

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

No branches or pull requests

3 participants