java.lang.RuntimeException: 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

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

Solutions on the web

via Coderanch by L Vasquez, 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 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 GitHub by BishopGIS
, 1 year ago
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
via Stack Overflow by boom3x
, 4 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 GitHub by mikkoj
, 11 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 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
java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.add(int, java.lang.Object)' on a null object reference
at my.package.myapplication.Person1Screen.onActivityResult(Person1Screen.java:210)
at android.app.Activity.dispatchActivityResult(Activity.java:6650)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3755)

Users with the same issue

You are the first who have seen this exception.

Write tip

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