diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt index 5b959d86e..c781e0863 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt @@ -152,7 +152,8 @@ class CalDAVHelper(val context: Context) { val existingEvents = try { context.eventsDB.getEventsFromCalDAVCalendar("$CALDAV-$calendarId") } catch (e: Exception) { - ArrayList() + context.showErrorToast(context.getString(R.string.unknown_error_occurred)) + return } existingEvents.forEach {