java.lang.Double.doubleValue()' on a null object reference

See original GitHub issue

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).

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
       at com.facebook.react.bridge.ReadableNativeArray.getDouble(ReadableNativeArray.java:114)
       at com.facebook.react.bridge.JavaMethodWrapper$4.extractArgument(JavaMethodWrapper.java:64)
       at com.facebook.react.bridge.JavaMethodWrapper$4.extractArgument(JavaMethodWrapper.java:60)
       at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:359)
       at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
       at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
       at android.os.Handler.handleCallback(Handler.java:789)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
       at android.os.Looper.loop(Looper.java:164)
       at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
       at java.lang.Thread.run(Thread.java:764)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:14
  • Comments:31

github_iconTop GitHub Comments

50reactions
react-native-botcommented, May 23, 2018

Please use Stack Overflow for this type of question.

18reactions
DiegoOpenheimercommented, Sep 16, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on "Attempt to invoke virtual method 'double java.lang ...
Your latitude and longitude are NULL, as they are only declared and value never assigned. Example : latitude=28.6139391;.
Read more >
java.lang.Double.doubleValue java code examples - Tabnine
Returns default value * when conversion result is <code>null</code>. */ public double toDoubleValue(Object value, double defaultValue) { Double result ...
Read more >
Java.lang.Double.doubleValue() Method - Tutorialspoint
Double.doubleValue() method returns the double value of this Double object. Declaration. Following is the declaration for java.lang.Double.doubleValue() method
Read more >
"Cannot invoke "java.lang.Double.doubleValue()" " error
Hello everyone! It seems like my files cannot be recognised(?) anymore. Actually when I try to type a specific number for the thresholder ......
Read more >
attempt to invoke virtual method 'double java.lang ... - You.com
StackOverflow ; java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference ; at com.myapp ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found