From 13019e6835218e45f20e32ca37b380ed50b05efa Mon Sep 17 00:00:00 2001 From: Naveen Date: Thu, 15 Jun 2023 23:34:10 +0530 Subject: [PATCH] Check title before adding event to db --- .../com/simplemobiletools/calendar/pro/helpers/CalDAVHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c05b322d7..494ce7781 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 @@ -265,7 +265,7 @@ class CalDAVHelper(val context: Context) { } // store the event in the local db only if it is an occurrence that has been modified and not deleted - if (status != Events.STATUS_CANCELED) { + if (status != Events.STATUS_CANCELED && title.isNotEmpty()) { val storedEventId = context.eventsDB.getEventIdWithImportId(importId) if (storedEventId != null) { event.id = storedEventId