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


Samebug tips1

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


,
via Stack Overflow by CommonsWare

Solutions on the web1243

Solution icon of github
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

Solution icon of stackoverflow
via Stack Overflow by boom3x
, 1 month 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

Solution icon of coderanch
via Coderanch by L Vasquez, 9 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

Solution icon of stackoverflow
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

Solution icon of stackoverflow
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

Solution icon of github
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.nextgis.mobile/com.nextgis.mobile.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.nextgis.maplib.map.VectorLayer.showFeature(long)' on a null object reference

Solution icon of web
Failure delivering result ResultInfo{who=null, request=40962, result=-1, data=Intent { (has extras) }} to activity {com.warden.cam/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

Solution icon of stackoverflow
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

Solution icon of github
Failure delivering result ResultInfo{who=null, request=600, result=-1, data=Intent { (has extras) }} to activity {org.wordpress.android/org.wordpress.android.ui.main.WPMainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.wordpress.android.models.Note.getId()' on a null object reference

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=null, request=64206, result=-1, data=Intent { (has extras) }} to activity {com.example.ryans_000.facebooklogin/com.example.ryans_000.facebooklogin.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Throwable.toString()' on a null object reference

Stack trace

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 java.lang.reflect.Method.invoke(Method.java)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

96 times, 6 days ago
295 times, 3 weeks ago
9 times, 3 months ago
37 times, 3 months ago
376 times, 3 months ago
172 more bugmates