java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65537, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:2810 flg=0x1 }} to activity {com.laurenswuyts.witpa/com.laurenswuyts.witpa.Activities.Events.AddEventActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

Stack Overflow | Laurenswuyts | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    No such file or directory found, image path to file

    Stack Overflow | 2 years ago | Laurenswuyts
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65537, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:2810 flg=0x1 }} to activity {com.laurenswuyts.witpa/com.laurenswuyts.witpa.Activities.Events.AddEventActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
  2. 0

    Android: Error upload image in different android versions

    Stack Overflow | 3 years ago | Thiago Moraes
    java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
  3. 0

    Picking image from gallery on Nexus 5 (Android 5.1.1) returning null, working on other devices

    Stack Overflow | 2 years ago | Vlad Iancu
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=131075, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:25147 flg=0x1 }} to activity {com.entu.artapp/com.entu.artapp.activity.FragmentManager}: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    部分机子列表滚动出错的问题

    GitHub | 2 years ago | karonl
    java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
  6. 0

    打开就crash 三星s5 cm android 5.0

    GitHub | 2 years ago | jianghao1123
    java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

    at java.io.File.fixSlashes()
  2. Java RT
    File.<init>
    1. java.io.File.fixSlashes(File.java:185)
    2. java.io.File.<init>(File.java:134)
    2 frames
  3. com.laurenswuyts.witpa
    AddEventFragment.onActivityResult
    1. com.laurenswuyts.witpa.Fragments.Events.AddEventFragment.decodeUri(AddEventFragment.java:254)
    2. com.laurenswuyts.witpa.Fragments.Events.AddEventFragment.onActivityResult(AddEventFragment.java:213)
    2 frames
  4. Android Support v4
    FragmentActivity.onActivityResult
    1. android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:163)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.app.Activity.dispatchActivityResult(Activity.java:6135)
    2. android.app.ActivityThread.deliverResults(ActivityThread.java:3535)
    3. android.app.ActivityThread.handleSendResult(ActivityThread.java:3582)
    4. android.app.ActivityThread.access$1300(ActivityThread.java:144)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1327)
    6. android.os.Handler.dispatchMessage(Handler.java:102)
    7. android.os.Looper.loop(Looper.java:135)
    8. android.app.ActivityThread.main(ActivityThread.java:5221)
    8 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
    2 frames