java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65538, result=-1, data=Intent { dat=file:///storage/emulated/0/DCIM/Camera/IMG_20160823_160716.jpg typ=image/jpeg }} to activity {com.avoscloud.chat/com.avoscloud.chat.activity.ChatRoomActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' 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 GitHub by FanYimin
, 1 year ago
Failure delivering result ResultInfo{who=null, request=65538, result=-1, data=Intent { dat=file:///storage/emulated/0/DCIM/Camera/IMG_20160823_160716.jpg typ=image/jpeg }} to activity {com.avoscloud.chat/com.avoscloud.chat.activity.ChatRoomActivity
via GitHub by LeChauvet
, 1 year ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=file:///storage/emulated/0/DCIM/Camera/IMG_20160329_210847.jpg typ=image/jpeg }} to activity {com.example.alexandroskarargyris.myapplication
via GitHub by gejiaheng
, 2 months ago
Failure delivering result ResultInfo{who=null, request=69398, result=-1, data=Intent { dat=file:///storage/emulated/0/DCIM/Camera/IMG_20170507_194215.jpg typ=image/jpeg }} to activity {com.zhihu.android/com.instabug.library.InstabugFeedbackActivity
via Stack Overflow by Lito
, 11 months ago
Failure delivering result ResultInfo{who=null, request=234, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:49769 flg=0x1 }} to activity {com.example.formador.a42_camera
via Stack Overflow by Rajpal Singh
, 9 months ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/255 typ=vnd.android.cursor.dir/image }} to activity {in.mydiscover.discover_branding
via Stack Overflow by tomhogenkamp
, 1 week ago
Failure delivering result ResultInfo{who=null, request=65537, result=-1, data=Intent { dat=content: flg=0x1 }} to activity {com.tomhogenkamp.personalcalc/com.tomhogenkamp.personalcalc.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.support.v4.app.FragmentActivity.getApplicationContext()' on a null object reference
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65538, result=-1, data=Intent { dat=file:///storage/emulated/0/DCIM/Camera/IMG_20160823_160716.jpg typ=image/jpeg }} to activity {com.avoscloud.chat/com.avoscloud.chat.activity.ChatRoomActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' on a null object reference
at cn.leancloud.chatkit.activity.LCIMConversationFragment.getRealPathFromURI(LCIMConversationFragment.java:327)
at cn.leancloud.chatkit.activity.LCIMConversationFragment.onActivityResult(LCIMConversationFragment.java:300)
at com.avoscloud.chat.activity.ConversationFragment.onActivityResult(ConversationFragment.java:168)
at com.avoscloud.chat.activity.ChatRoomActivity.onActivityResult(ChatRoomActivity.java:63)
at android.app.Activity.dispatchActivityResult(Activity.java:6508)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3702)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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