handle null event duration
This commit is contained in:
parent
742be5846e
commit
16032c700b
|
@ -225,7 +225,7 @@ class CalDAVHandler(val context: Context) {
|
||||||
val reminders = getCalDAVEventReminders(id)
|
val reminders = getCalDAVEventReminders(id)
|
||||||
|
|
||||||
if (endTS == 0) {
|
if (endTS == 0) {
|
||||||
val duration = cursor.getStringValue(CalendarContract.Events.DURATION)
|
val duration = cursor.getStringValue(CalendarContract.Events.DURATION) ?: ""
|
||||||
endTS = startTS + Parser().parseDurationSeconds(duration)
|
endTS = startTS + Parser().parseDurationSeconds(duration)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue