From ffc55caadd40a414ff27acdfd71c0c89cec5a5bd Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Tue, 3 Mar 2015 13:32:48 +0300 Subject: [PATCH] Minor --- .../jetbrains/kotlin/idea/completion/LookupElementFactory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/completion/LookupElementFactory.kt b/idea/src/org/jetbrains/kotlin/idea/completion/LookupElementFactory.kt index 8f7a0acacd7..68d5dd886fe 100644 --- a/idea/src/org/jetbrains/kotlin/idea/completion/LookupElementFactory.kt +++ b/idea/src/org/jetbrains/kotlin/idea/completion/LookupElementFactory.kt @@ -109,7 +109,7 @@ public class LookupElementFactory( element = element.appendTailText(typeParams.map { it.getName() }.joinToString(", ", "<", ">"), true) } - val qualifiedName = psiClass.getQualifiedName() + val qualifiedName = psiClass.getQualifiedName()!! val dotIndex = qualifiedName.lastIndexOf('.') val packageName = if (dotIndex <= 0) "" else qualifiedName.substring(0, dotIndex) element = element.appendTailText(" ($packageName)", true)