Crash in DavSyncAdapter.onPerformSync

  • davdroid crashed while browsing the contacts list.

    E/AndroidRuntime( 6446): Process: at.bitfire.davdroid:sync, PID: 6446
    E/AndroidRuntime( 6446): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replaceAll(java.lang.String, java.lang.String)' on a null object reference
    E/AndroidRuntime( 6446): 	at at.bitfire.davdroid.resource.LocalAddressBook.labelToXName(
    E/AndroidRuntime( 6446): 	at at.bitfire.davdroid.resource.LocalAddressBook.populate(
    E/AndroidRuntime( 6446): 	at at.bitfire.davdroid.resource.LocalCollection.findByRemoteName(
    E/AndroidRuntime( 6446): 	at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(
    E/AndroidRuntime( 6446): 	at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(
    E/AndroidRuntime( 6446): 	at android.content.AbstractThreadedSyncAdapter$

    davdroid 0.5-alpha from f-droid.
    Android 4.4.1/CM11-20131207-NIGHTLY Samsung Nexus S

    Please feel free to rename this issue with a more clear description.

  • developer

    Fixed with 33b8aa8e05b9674e9cef622e7f53a8585ee4d223 by adding a null check , but this may occur again because of inconsistent data in your contact database. If this problem occurs again, please delete your DAVdroid account and add it again. If it still persists, please write here again.

Similar topics

  • 6
  • 1
  • 6