From 4d10b18fe1377730310ffb7f166c582413a47a34 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 20 Mar 2017 18:44:14 +0100 Subject: [PATCH] Fix for 171 platform --- .../kotlin/idea/completion/LambdaSignatureTemplates.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/LambdaSignatureTemplates.kt b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/LambdaSignatureTemplates.kt index 9403e53dd5a..faf94bf9a64 100644 --- a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/LambdaSignatureTemplates.kt +++ b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/LambdaSignatureTemplates.kt @@ -54,7 +54,7 @@ object LambdaSignatureTemplates { ) { // we start template later to not interfere with insertion of tail type val commandProcessor = CommandProcessor.getInstance() - val commandName = commandProcessor.currentCommandName!! + val commandName = commandProcessor.currentCommandName ?: "Insert lambda template" val commandGroupId = commandProcessor.currentCommandGroupId val rangeMarker = context.document.createRangeMarker(placeholderRange)