Crash when syncing contacts



  • I'm getting the following crash whenever I try to sync contacts:

    E/AndroidRuntime( 7957): FATAL EXCEPTION: SyncAdapterThread-1
    E/AndroidRuntime( 7957): Process: at.bitfire.davdroid:sync, PID: 7957
    E/AndroidRuntime( 7957): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
    E/AndroidRuntime( 7957): at at.bitfire.davdroid.resource.LocalAddressBook.populateIMPP(LocalAddressBook.java:433)
    E/AndroidRuntime( 7957): at at.bitfire.davdroid.resource.LocalAddressBook.populate(LocalAddressBook.java:214)
    E/AndroidRuntime( 7957): at at.bitfire.davdroid.resource.LocalCollection.findById(LocalCollection.java:220)
    E/AndroidRuntime( 7957): at at.bitfire.davdroid.syncadapter.SyncManager.pushDirty(SyncManager.java:170)
    E/AndroidRuntime( 7957): at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:56)
    E/AndroidRuntime( 7957): at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:138)
    E/AndroidRuntime( 7957): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)

    Please let me know if (and how) I can provide more useful information.


  • developer

    This seems to be for an old DAVdroid version. Which version do you use?



  • I just updated to 0.8.4 this morning. The crash report is from after the update but I was already experiencing crashes before.

    On August 26, 2015 3:20:18 PM GMT+02:00, rfc2822 notifications@github.com wrote:

    This seems to be for an old DAVdroid version. Which version do you use?


    Reply to this email directly or view it on GitHub:
    https://github.com/bitfireAT/davdroid/issues/622#issuecomment-135015054


  • developer

    Are you sure that the crash report is from after the update? The line numbers don't seem to match to 0.8.4, and this bug should have been fixed.

    Can you please uninstall DAVdroid, re-install 0.8.4 and then try again?

    If the problem persists, it's a problem with an IMPP line. Then please provide verbose logs and the VCard where the issue occurs.



  • This is weird: reinstalling DAVdroid didn't help but removing en re-adding the offending sync account did. Everything seems to be working OK now!


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.