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