java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 34#246256659
    via GitHub by FanYimin
    ,
    • 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 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 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)
    No Bugmate found.