NPE crash during contact sync



  • Getting this after I upgraded to the latest davdroid + latest owncloud, so not sure which of the two is responsible.

    W/dalvikvm(17495): VFY: unable to find class referenced in signature (Lorg/jsoup/nodes/Element;)
    I/dalvikvm(17495): Could not find method org.jsoup.nodes.Element.getElementsByTag, referenced from method ezvcard.io.scribe.SoundScribe._parseHtml
    W/dalvikvm(17495): VFY: unable to resolve virtual method 17559: Lorg/jsoup/nodes/Element;.getElementsByTag (Ljava/lang/String;)Lorg/jsoup/select/Elements;
    
    D/davdroid.SyncManager(17495): Adding a5f5cbf6aa.vcf
    W/dalvikvm(17495): threadid=10: thread exiting with uncaught exception (group=0x41d1eba8)
    E/AndroidRuntime(17495): FATAL EXCEPTION: SyncAdapterThread-1
    E/AndroidRuntime(17495): Process: at.bitfire.davdroid:sync, PID: 17495
    E/AndroidRuntime(17495): java.lang.NullPointerException
    E/AndroidRuntime(17495): 	at at.bitfire.davdroid.resource.LocalAddressBook.buildOrganization(LocalAddressBook.java:702)
    E/AndroidRuntime(17495): 	at at.bitfire.davdroid.resource.LocalAddressBook.addDataRows(LocalAddressBook.java:536)
    E/AndroidRuntime(17495): 	at at.bitfire.davdroid.resource.LocalCollection.add(LocalCollection.java:198)
    E/AndroidRuntime(17495): 	at at.bitfire.davdroid.syncadapter.SyncManager.pullNew(SyncManager.java:185)
    E/AndroidRuntime(17495): 	at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:88)
    E/AndroidRuntime(17495): 	at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:71)
    E/AndroidRuntime(17495): 	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
    
    D/davdroid.WebDavResource(17495): a5f5cbf6aa.vcf</d:href><d:propstat><d:prop><card:address-data>BEGIN:VCARD
    D/davdroid.WebDavResource(17495): VERSION:3.0
    D/davdroid.WebDavResource(17495): FN:xxx
    D/davdroid.WebDavResource(17495): N:x;x;;;
    D/davdroid.WebDavResource(17495): EMAIL;TYPE=INTERNET;TYPE=HOME:xxx@gmail.com
    D/davdroid.WebDavResource(17495): TEL;TYPE=CELL:xxx
    D/davdroid.WebDavResource(17495): TITLE:xxx
    D/davdroid.WebDavResource(17495): UID:a5f5cbf6aa
    D/davdroid.WebDavResource(17495): REV:2013-11-26T12:04:58+00:00
    D/davdroid.WebDavResource(17495): PRODID:-//ownCloud//NONSGML Contacts 0.2.5//EN
    D/davdroid.WebDavResource(17495): END:VCARD
    D/davdroid.WebDavResource(17495): </card:address-data
    


  • Probably related to ea06c4a7a149c04ac2b0fef93cb516d29ac2c5e0, confirmed that removing the 'TITLE' field from the contact fixes the crash.


  • developer

    I'll never get used to Java ☹

    @nezzi: The crash occurs when TITLE/ROLE is set but ORG is not.


Log in to reply
 

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