From 43ce8ec161b779a7d034ea49e3b2f7ed69b90236 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 5 Mar 2018 09:10:30 +0100 Subject: [PATCH] fix #390, properly handle null ownername at CalDAV calendars --- .../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 6f5cc1a35..b699e4d36 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/CalDAVHandler.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/CalDAVHandler.kt @@ -64,7 +64,7 @@ class CalDAVHandler(val context: Context) { val displayName = cursor.getStringValue(CalendarContract.Calendars.CALENDAR_DISPLAY_NAME) val accountName = cursor.getStringValue(CalendarContract.Calendars.ACCOUNT_NAME) val accountType = cursor.getStringValue(CalendarContract.Calendars.ACCOUNT_TYPE) - val ownerName = cursor.getStringValue(CalendarContract.Calendars.OWNER_ACCOUNT) + val ownerName = cursor.getStringValue(CalendarContract.Calendars.OWNER_ACCOUNT) ?: "" val color = cursor.getIntValue(CalendarContract.Calendars.CALENDAR_COLOR) val accessLevel = cursor.getIntValue(CalendarContract.Calendars.CALENDAR_ACCESS_LEVEL) val calendar = CalDAVCalendar(id, displayName, accountName, accountType, ownerName, color, accessLevel)