diff --git a/idea/src/org/jetbrains/kotlin/idea/quickfix/KotlinReferenceImporter.kt b/idea/src/org/jetbrains/kotlin/idea/quickfix/KotlinReferenceImporter.kt index 30ad9940d4c..080652dea7f 100644 --- a/idea/src/org/jetbrains/kotlin/idea/quickfix/KotlinReferenceImporter.kt +++ b/idea/src/org/jetbrains/kotlin/idea/quickfix/KotlinReferenceImporter.kt @@ -66,7 +66,7 @@ class KotlinReferenceImporter : ReferenceImporter { ): ImportFixBase? { var importFix: ImportFixBase? = null DaemonCodeAnalyzerEx.processHighlights(editor.document, file.project, null, offset, offset) { info -> - importFix = info.quickFixActionRanges.map { it.first.action }.filterIsInstance>().firstOrNull() + importFix = info.quickFixActionRanges?.map { it.first.action }?.filterIsInstance>()?.firstOrNull() importFix == null } return importFix