java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=13001, result=-1, data=null} to activity {com.edukit.staging/com.reactnativenavigation.controllers.PortraitNavigationActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Activity com.facebook.react.bridge.ReactContext.getCurrentActivity()' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by CommonsWare

Try loading the text file into a WebView, then printing the contents of the WebView.

,

IllegalArgumentException in Java. This exception is thrown in order to indicate that a method has been passed an illegal or inappropriate argument.

Solutions on the web

via GitHub by mikkoj
, 10 months ago
Failure delivering result ResultInfo{who=null, request=13001, result=-1, data=null} to activity {com.edukit.staging/com.reactnativenavigation.controllers.PortraitNavigationActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Activity com.facebook.react.bridge.ReactContext.getCurrentActivity()' on a null object reference
via Coderanch by L Vasquez, 11 months ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {my.package.myapplication/my.package.myapplication.Person1Screen}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.add(int, java.lang.Object)' on a null object reference
via Stack Overflow by ImagineThat
, 1 year ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {my.package.myapplication/my.package.myapplication.Person1Screen}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.add(int, java.lang.Object)' on a null object reference
via Stack Overflow by boom3x
, 3 months ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {ur.mi.android.wgplus05/ur.mi.android.wgplus05.PictureActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.IBinder android.view.View.getWindowToken()' on a null object reference
via Stack Overflow by Misael Gallegos Guzmán
, 1 year ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data (has extras) }} to activity {mx.com.jamba.jamba/mx.com.jamba.jamba.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getLastPathSegment()' on a null object reference
via Stack Overflow by user292965
, 1 year ago
Failure delivering result ResultInfo{who=null, request=0, result=-1, data=null} to activity {com.camera/com.camera.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=13001, result=-1, data=null} to activity {com.edukit.staging/com.reactnativenavigation.controllers.PortraitNavigationActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Activity com.facebook.react.bridge.ReactContext.getCurrentActivity()' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:3798)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3841)
at android.app.ActivityThread.access$1400(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:234)
at android.app.ActivityThread.main(ActivityThread.java:5526)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

Once, 3 weeks ago
2 times, 5 months ago
6 times, 10 months ago
81 times, 11 months ago
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.