File tree 1 file changed +7
-2
lines changed
app/src/main/kotlin/at/bitfire/davdroid/sync
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -163,9 +163,14 @@ class JtxSyncManager @AssistedInject constructor(
163
163
164
164
icalobjects.forEach { jtxICalObject ->
165
165
// if the entry is a recurring entry (and therefore has a recurid)
166
- // we udpate the existing (generated) entry
166
+ // we update the existing (generated) entry
167
167
if (jtxICalObject.recurid != null ) {
168
- val local = localCollection.findRecurring(jtxICalObject.uid, jtxICalObject.recurid!! , jtxICalObject.dtstart!! )
168
+ val local = jtxICalObject.dtstart?.let { dtstart ->
169
+ localCollection.findRecurring(jtxICalObject.uid, jtxICalObject.recurid!! , dtstart)
170
+ } ? : run {
171
+ logger.log(Level .INFO , " Got a recur instance (${jtxICalObject.recurid} /${jtxICalObject.uid} ) with an invalid dtstart." )
172
+ null
173
+ }
169
174
SyncException .wrapWithLocalResource(local) {
170
175
logger.log(Level .INFO , " Updating $fileName with recur instance ${jtxICalObject.recurid} in local list" , jtxICalObject)
171
176
if (local != null ) {
You can’t perform that action at this time.
0 commit comments