diff --git a/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin/util.kt b/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin/util.kt index e4141696cc..cfd2b0eac8 100644 --- a/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin/util.kt +++ b/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin/util.kt @@ -340,7 +340,7 @@ private fun KaAnnotated.annotationsWithRepeatableUnfolded(): List (it as? KaAnnotationValue.NestedAnnotationValue)?.annotation ?: return@flatMap listOf(container) } val containedAnnotationClassId: ClassId = - containedAnnotations?.first()?.classId ?: return@flatMap listOf(container) + containedAnnotations?.firstOrNull()?.classId ?: return@flatMap listOf(container) val containedClass = containedAnnotationClassId.toKtClassSymbol() ?: return@flatMap listOf(container) if (containedClass.isRepeatableAnnotation(container)) { containedAnnotations