java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=1, result=-1, data=Intent { (has extras) }} to activity {com.android.contacts/com.android.contacts.activities.ContactEditorActivity}: java.lang.NullPointerException

Stack Overflow | Dim | 6 months 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

    Error when adding an entry to Contacts

    Stack Overflow | 6 months ago | Dim
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=1, result=-1, data=Intent { (has extras) }} to activity {com.android.contacts/com.android.contacts.activities.ContactEditorActivity}: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.android.contacts.model.EntityModifier.canInsert()
    2. com.android.contacts
      ContactEditorFragment.onActivityResult
      1. com.android.contacts.model.EntityModifier.canInsert(EntityModifier.java:94)
      2. com.android.contacts.model.EntityModifier.parseExtras(EntityModifier.java:625)
      3. com.android.contacts.editor.ContactEditorFragment.bindEditorsForNewContact(ContactEditorFragment.java:839)
      4. com.android.contacts.editor.ContactEditorFragment.bindEditorsForNewContact(ContactEditorFragment.java:798)
      5. com.android.contacts.editor.ContactEditorFragment.createContact(ContactEditorFragment.java:765)
      6. com.android.contacts.editor.ContactEditorFragment.onActivityResult(ContactEditorFragment.java:2134)
      6 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:5208)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:3298)
      3. android.app.ActivityThread.handleSendResult(ActivityThread.java:3345)
      4. android.app.ActivityThread.access$1100(ActivityThread.java:149)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348)
      6. android.os.Handler.dispatchMessage(Handler.java:99)
      7. android.os.Looper.loop(Looper.java:153)
      8. android.app.ActivityThread.main(ActivityThread.java:5086)
      8 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame