From 16032c700b80d22d694cc4c59c4aee97a2e36d46 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 2 Sep 2017 19:43:18 +0200 Subject: [PATCH] handle null event duration --- .../com/simplemobiletools/calendar/helpers/CalDAVHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/CalDAVHandler.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/CalDAVHandler.kt index 2d3c9a29c..483f5e28d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/CalDAVHandler.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/CalDAVHandler.kt @@ -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) }