diff --git a/idea/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinCommonBlock.kt b/idea/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinCommonBlock.kt index ed8ab20b2b5..e9b6f302364 100644 --- a/idea/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinCommonBlock.kt +++ b/idea/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinCommonBlock.kt @@ -403,7 +403,7 @@ abstract class KotlinCommonBlock( private fun ASTNode.startsWithAnnotation() = firstChildNode?.firstChildNode?.elementType == KtNodeTypes.ANNOTATION_ENTRY -private fun ASTNode.isFirstParameter(): Boolean = treePrev.elementType == KtTokens.LPAR +private fun ASTNode.isFirstParameter(): Boolean = treePrev?.elementType == KtTokens.LPAR private fun wrapAfterAnnotation(wrapType: Int): WrappingStrategy { return object : WrappingStrategy {