handle null event duration

This commit is contained in:
tibbi 2017-09-02 19:43:18 +02:00
parent 742be5846e
commit 16032c700b
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}