java.lang.RuntimeException

Failure delivering result ResultInfo{who=null, request=65538, result=-1, data=Intent { dat=file:///storage/emulated/0/tencent/QQ_Images/-307b1d839e24191.jpg typ=image/jpeg }} to activity {com.avoscloud.chat/cn.leancloud.chatkit.activity.LCIMConversationActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' on a null object reference

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via GitHub by FanYimin
    ,
  • Stack trace

    • java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65538, result=-1, data=Intent { dat=file:///storage/emulated/0/tencent/QQ_Images/-307b1d839e24191.jpg typ=image/jpeg }} to activity {com.avoscloud.chat/cn.leancloud.chatkit.activity.LCIMConversationActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3706) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3749) at android.app.ActivityThread.access$1400(ActivityThread.java:153) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5438) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) Caused by: 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 android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:175) at android.app.Activity.dispatchActivityResult(Activity.java:6508) at android.app.ActivityThread.deliverResults(ActivityThread.java:3702)

    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

    We couldn't find other users who have seen this exception.