diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/LazyImportScope.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/LazyImportScope.kt index bc65cdb7f9b..6d82659dccd 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/LazyImportScope.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/LazyImportScope.kt @@ -52,8 +52,9 @@ class AliasImportsIndexed(allImports: Collection) : IndexedI val builder = ImmutableListMultimap.builder() for (directive in imports) { - val path = directive.getImportPath() ?: continue // can be some parse errors - builder.put(path.getImportedName()!!, directive) + val path = directive.getImportPath() ?: continue // parse error + val importedName = path.getImportedName() ?: continue // parse error + builder.put(importedName, directive) } builder.build()