EA-104855 - (1.1.4) NPE: KotlinCommonBlockKt.isFirstParameter

This commit is contained in:
Dmitry Jemerov
2017-07-20 12:50:12 +02:00
parent fbcc519098
commit 9213c4a1ab
@@ -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 {