Hi,
since I received Android 8.0 on my Huawei P10, the following error keeps occuring when synchronizing with my Nextcloud:
--- BEGIN DEBUG INFO ---
SYNCHRONIZATION INFO
Synchronization phase: 4
Account name: Nextcloud
Authority: org.dmfs.tasks
EXCEPTION:
at.bitfire.ical4android.CalendarStorageException: Couldn't read locally stored event
at at.bitfire.ical4android.AndroidTask.getTask(AndroidTask.kt:68)
at at.bitfire.davdroid.resource.LocalTaskList.getDirty(LocalTaskList.kt:122)
at at.bitfire.davdroid.syncadapter.SyncManager.uploadDirty(SyncManager.kt:335)
at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.kt:136)
at at.bitfire.davdroid.syncadapter.TasksSyncAdapterService$TasksSyncAdapter.sync(TasksSyncAdapterService.kt:64)
at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:85)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Calendar.setTimeZone(java.util.TimeZone)' on a null object reference
at java.text.DateFormat.setTimeZone(DateFormat.java:690)
at net.fortuna.ical4j.model.Iso8601.<init>(Iso8601.java:77)
at net.fortuna.ical4j.model.Date.<init>(Date.java:150)
at net.fortuna.ical4j.model.DateTime.<init>(DateTime.java:253)
at at.bitfire.ical4android.AndroidTask.populateTask(AndroidTask.kt:131)
at at.bitfire.davdroid.resource.LocalTask.populateTask(LocalTask.kt:47)
at at.bitfire.ical4android.AndroidTask.getTask(AndroidTask.kt:63)
... 6 more
SOFTWARE INFORMATION
Package: at.bitfire.davdroid
Version: 1.10.1.1-gplay (206) from 20.01.2018
Installed from: com.android.vending
JB Workaround installed: no
CONNECTIVITY (at the moment)
Active connection: WiFi, CONNECTED
CONFIGURATION
Power saving disabled: yes
android.permission.READ_CONTACTS permission: granted
android.permission.WRITE_CONTACTS permission: granted
android.permission.READ_CALENDAR permission: granted
android.permission.WRITE_CALENDAR permission: granted
org.dmfs.permission.READ_TASKS permission: granted
org.dmfs.permission.WRITE_TASKS permission: granted
System-wide synchronization: automatically
Account: Nextcloud
Address book sync. interval: 1440 min
Calendar sync. interval: 60 min
OpenTasks sync. interval: 60 min
WiFi only: false
[CardDAV] Contact group method: GROUP_VCARDS
[CalDAV] Time range (past days): 90
Manage calendar colors: true
Address book account: Kontakte (Nextcloud dA)
Main account: Account {name= XXXXXXXXX, type=bitfire.at.davdroid}
URL: https://xxxxxx.no-ip.org/remote.php/carddav/addressbooks/xxxxxx/Kontakte/
Sync automatically: true
SQLITE DUMP
android_metadata
| locale |
| de_DE |
----------
services
| _id | accountName | service | principal |
| 1 | Nextcloud | carddav | https://xxxxxx.no-ip.org/remote.php/carddav/principals/xxxxxx/ |
| 2 | Nextcloud | caldav | https://xxxxxx.no-ip.org/remote.php/caldav/principals/xxxxxx/ |
----------
sqlite_sequence
| name | seq |
| services | 4 |
| homesets | 11 |
| collections | 57 |
----------
homesets
| _id | serviceID | url |
| 2 | 1 | https://xxxxxx.no-ip.org/remote.php/carddav/addressbooks/xxxxxx/ |
| 11 | 2 | https://xxxxxx.no-ip.org/remote.php/caldav/calendars/xxxxxx/ |
----------
collections
| _id | serviceID | type | url | readOnly | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
| 5 | 1 | ADDRESS_BOOK | https://xxxxxx.no-ip.org/remote.php/carddav/addressbooks/xxxxxx/Kontakte/ | 0 | 0 | Kontakte | <null> | <null> | <null> | 0 | 0 | <null> | 1 |
| 52 | 2 | CALENDAR | https://xxxxxx.no-ip.org/remote.php/caldav/calendars/xxxxxx/contact_birthdays/ | 1 | 0 | Geburtstage von Kontakten | <null> | -54 | <null> | 1 | 0 | <null> | 1 |
| 53 | 2 | CALENDAR | https://xxxxxx.no-ip.org/remote.php/caldav/calendars/xxxxxx/familie/ | 0 | 0 | Familie | <null> | -9115730 | <null> | 1 | 1 | <null> | 1 |
| 54 | 2 | CALENDAR | https://xxxxxx.no-ip.org/remote.php/caldav/calendars/xxxxxx/pers%c3%b6nlich/ | 0 | 0 | Persönlich | Persönlich | -16777216 | <null> | 1 | 1 | <null> | 1 |
| 55 | 2 | CALENDAR | https://xxxxxx.no-ip.org/remote.php/caldav/calendars/xxxxxx/xxxx/ | 0 | 0 | TakeASP | <null> | -39936 | <null> | 1 | 1 | <null> | 1 |
| 56 | 2 | CALENDAR | https://xxxxxx.no-ip.org/remote.php/caldav/calendars/xxxxxx/xxxxxxxxxxx/ | 0 | 0 | Team Orange | <null> | -26112 | <null> | 1 | 1 | <null> | 1 |
| 57 | 2 | CALENDAR | https://xxxxxx.no-ip.org/remote.php/caldav/calendars/xxxxxx/xxx/ | 0 | 0 | Vogel Business Media | Vogel Business Media | -16687987 | <null> | 1 | 1 | <null> | 1 |
----------
SYSTEM INFORMATION
Android version: 8.0.0 (VTR-L09 8.0.0.360(C432))
Device: HUAWEI VTR-L09 (HWVTR)
--- END DEBUG INFO ---
This issue doesn’t occur on the same device when I use CalDAV-Sync e.g.
Best regards
Thomas