diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt index f02b02a27..71f6b3210 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt @@ -117,7 +117,7 @@ class IcsImporter(val activity: SimpleActivity) { if (curTitle.isEmpty() || curStart == -1) continue - val eventToUpdate = existingEvents.firstOrNull { curImportId == it.importId } + val eventToUpdate = existingEvents.firstOrNull { curImportId.isNotEmpty() && curImportId == it.importId } if (eventToUpdate != null && eventToUpdate.lastUpdated >= curLastModified) { continue }