java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=203, result=-1, data=Intent { (has extras) }} to activity {com.hey.heypickup/com.hey.heypickup.Activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference


Solutions on the web

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=null, request=203, result=-1, data=Intent { (has extras) }} to activity {com.hey.heypickup/com.hey.heypickup.Activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' 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 {com.example.gentaliu.photoeditor/com.example.gentaliu.photoeditor.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' 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 {com.example.gentaliu.photoeditor/com.example.gentaliu.photoeditor.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by iri.jwj
, 4 months ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {com.example.irijwj.imagercognition/com.example.irijwj.imagercognition.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method

Solution icon of github
Failure delivering result ResultInfo{who=null, request=1008, result=-1, data=Intent { (has extras) }} to activity {com.jph.simple/com.jph.simple.SimpleActivity}: java.lang.reflect.UndeclaredThrowableException

Solution icon of github
Failure delivering result ResultInfo{who=null, request=66544, result=-1, data=Intent { (has extras) }} to activity {com.jph.simple/com.jph.simple.SimpleFragmentActivity}: java.lang.reflect.UndeclaredThrowableException

Solution icon of stackoverflow
via Stack Overflow by Filipe Costa
, 6 months ago
Failure delivering result ResultInfo{who=null, request=3, result=-1, data=Intent { act=inline-data (has extras) }} to activity {com.esmad.pdm.friendlymanager/com.esmad.pdm.friendlymanager.UserSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { act=inline-data (has extras) }} to activity {br.gov.rj.barraemexposicao/br.gov.rj.barraemexposicao.EnviaFoto}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by user3602369
, 1 year ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.main.myGame.android/com.main.myGame.android.AndroidLauncher}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Emmanuel Okocha
, 3 months ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.cuid.gigabytedevelopersinc.splanner/com.cuid.gigabytedevelopersinc.splanner.activities.UserProfileSetup}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference

Stack trace

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=203, result=-1, data=Intent { (has extras) }} to activity {com.hey.heypickup/com.hey.heypickup.Activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference
	at android.app.ActivityThread.deliverResults(ActivityThread.java:3790)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3833)
	at android.app.ActivityThread.access$1700(ActivityThread.java:152)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1390)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5538)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference
	at android.content.ContentResolver.openInputStream(ContentResolver.java:641)
	at android.provider.MediaStore$Images$Media.getBitmap(MediaStore.java:849)
	at com.hey.heypickup.Activities.MainActivity.onActivityResult(MainActivity.java:128)
	at android.app.Activity.dispatchActivityResult(Activity.java:6238)
	at android.app.ActivityThread.deliverResults(ActivityThread.java:3786)
	... 10 more

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

3 times, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago