It working with caldav sync adapter but i have not addressbook.
NullPointerException: Attempt to invoke virtual method 'void java.util.Calendar.setTimeZone(java.util.TimeZone)' on a null object reference
-
@Ryonez said in NullPointerException: Attempt to invoke virtual method 'void java.util.Calendar.setTimeZone(java.util.TimeZone)' on a null object reference:
However, this error only shows if I try to sync past events. If I set “Past event time limit” to zero, there are no errors.
Probably because then there are no events to synchronize at the moment. As soon as there are new events, it will fail again.
I do kinda want to see past events on my phone though…
As far as I know you will have to reinstall DAVx⁵ to get it working, like the others…
-
I did have future events that did sync at the time.
I reinstalled and it did fix itself.
-
@Ryonez Thanks for the update!
-
I just ran into this problem as well. No recent updates that I know of. (I’ve been running 8.0 for quite a while, and even my most recent minor OS update is at least 4 weeks ago). It just stopped working and the debug log revealed a
2019-02-11 23:34:19 46290 [syncadapter.SyncManager] Unclassified sync error EXCEPTION java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.TimeZone java.util.Calendar.getTimeZone()' on a null object reference at java.text.DateFormat.getTimeZone(DateFormat.java:704)
Uninstalling and re-installing solved it.
More problematic was, that it failed completely silently (until I collected debug logs). My calendar went out of sync with the server and I noticed by accident. -
@ccoenen said in NullPointerException: Attempt to invoke virtual method 'void java.util.Calendar.setTimeZone(java.util.TimeZone)' on a null object reference:
More problematic was, that it failed completely silently (until I collected debug logs). My calendar went out of sync with the server and I noticed by accident.
Did you turn off notifications for DAVx⁵ or one of its notification channels?
-
@rfc2822 I do not believe so, but after uninstalling, I can’t be entirely sure.
-
@ccoenen Because this adb message (“Unclassified sync error”) is printed from the code which generates the notification and other people are getting the notification for this error…
-
@rfc2822 I can offer the whole debug logfile from before the uinstallation if that would be any help? If you would like to take a look at it can email it to you.
-
@ccoenen Guess it won’t contain any new information, but who knows
Please send it to play@bitfire.at or upload it here
-
@devvv4ever said in NullPointerException: Attempt to invoke virtual method 'void java.util.Calendar.setTimeZone(java.util.TimeZone)' on a null object reference:
As already said, we don’t think it is related to DAVx⁵ itself. But reinstalling the app may clear some caches or the calendar storage which is somehow the cause of the problem. Full-day-events don’t have a timezone.
It seems that reinstalling DAVx5 is not necessary, at least in all cases. I had this issue a long time ago and now again today with two of my calendars containing tasks. Clearing cache of the OpenTasks app (dmfs.tasks) made sync work great again.
Steps to do this: Navigate to the app info of OpenTasks (or presumably your other favourite tasks or calendar app), tap “Storage” and press the “Clear Cache” button. A follwoing sync of the calendars worked without any issue.
Anone can confirm this?