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)