diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index 64c0fa298..2f0793f99 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -779,7 +779,7 @@ class EventActivity : SimpleActivity() { } private fun storeEvent(wasRepeatable: Boolean) { - if (mEvent.id == 0L) { + if (mEvent.id == 0L || mEvent.id == null) { dbHelper.insert(mEvent, true, this) { if (DateTime.now().isAfter(mEventStartDateTime.millis)) { if (mEvent.repeatInterval == 0 && mEvent.getReminders().isNotEmpty()) {