SufficientlySecure / birthday-calendar

Display all contact birthdays automatically in your standard Android calendar.
https://www.schuermann.eu/android/
GNU General Public License v3.0
94 stars 28 forks source link

java.lang.IllegalArgumentException: the name must not be empty: null #63

Closed dschuermann closed 11 years ago

dschuermann commented 11 years ago

from Google Play:

this started happening with the last update to birthday adapter (1.14)

java.lang.IllegalArgumentException: the name must not be empty: null at android.accounts.Account.<init>(Account.java:48) at org.birthdayadapter.service.CalendarSyncAdapterService.getContactsEventsWithAccountFilter(CalendarSyncAdapterService.java:503) at org.birthdayadapter.service.CalendarSyncAdapterService.getContactsEvents(CalendarSyncAdapterService.java:450) at org.birthdayadapter.service.CalendarSyncAdapterService.performSync(CalendarSyncAdapterService.java:712) at org.birthdayadapter.service.MainIntentService.onHandleIntent(MainIntentService.java:85) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.os.HandlerThread.run(HandlerThread.java:60)

Merlin8000 commented 11 years ago

I'm assuming that this is the error that I clicked the report button when the adapter sync failed on my phone.

I wanted to note that the account for contacts that I had configured the adapter to sync with is from carddav sync: https://play.google.com/store/apps/details?id=org.dmfs.carddav.sync

In the latest version, my CardDAV account(s) is not visible in the "Account Filter" tab of the settings.

I also want to note that I've tried clearing cache/data from the birthday adapter application and still get this error.

Lastly, I can confirm that this is specific to 1.14. I restored from my backup archive from 2013-05-30 and the adapter works correctly again.

dschuermann commented 11 years ago

Do you have an caldav account on your device where the name is empty or otherwise suspicious?

dschuermann commented 11 years ago

Will be fixed in the next version.