Skip to content

NPE "Attempt to read from null array" when writing VEVENT #2001

@Massedil

Description

@Massedil

Problem scope

  • I'm sure that this is a DAVx⁵ problem.

App version

  • I'm using the latest available DAVx⁵ version.

Android version and device/firmware type

15 (lineage_a52sxq-userdebug)

Steps to reproduce

I'm not sure. But I think there was a sync when I was creating an event in Etar.

Something like :

  • Create an event in Etar
  • Switch to the web app to copy event info
  • DavX tries to sync
  • Switch to Etar and finish and save the event
  • Go to davx5 to force sync and see if the error is still here : no error anymore !

Actual result

EXCEPTION
java.lang.NullPointerException: Attempt to read from null array
	at net.fortuna.ical4j.model.component.Observance.getCachedOnset(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:21)
	at net.fortuna.ical4j.model.component.Observance.getLatestOnset(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:88)
	at at.bitfire.ical4android.ICalendar$Companion.minifyVTimeZone(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:37)
	at at.bitfire.synctools.icalendar.ICalendarGenerator.write(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:199)
	at at.bitfire.davdroid.sync.CalendarSyncManager.generateUpload$app(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:112)
	at at.bitfire.davdroid.sync.CalendarSyncManager.generateUpload$app(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:163)
	at at.bitfire.davdroid.sync.SyncManager.uploadDirty$suspendImpl(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:141)
	at at.bitfire.davdroid.sync.SyncManager.uploadDirty(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:1)
	at at.bitfire.davdroid.sync.SyncManager.uploadDirty$default(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:8)
	at at.bitfire.davdroid.sync.SyncManager$uploadDirty$2$1$1.invokeSuspend(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:33)
	at at.bitfire.davdroid.sync.SyncManager$uploadDirty$2$1$1.invoke(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:9)
	at at.bitfire.davdroid.sync.SyncManager$uploadDirty$2$1$1.invoke(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:14)
	at at.bitfire.davdroid.sync.SyncException$Companion.wrapWithLocalResourceSuspending(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:67)
	at at.bitfire.davdroid.sync.SyncManager$uploadDirty$2$1.invokeSuspend(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:38)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:9)
	at kotlinx.coroutines.DispatchedTask.run(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:114)
	at androidx.core.app.ActivityRecreator$1.run(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:11)
	at kotlinx.coroutines.scheduling.TaskImpl.run(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:3)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(r8-map-id-33936d9e6d681d0995265b121ccbb1590427a15578f9cf5b7e4025d4b078f3ca:88)

Expected result

no crash !

Further info

debug-info.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions