IDEA-56121 Groovy: NPE at ConvertParameterToMapEntryIntention$4.run() on "Convert parameter to map entry" intention applied to method/closure invoked with omitted parentheses

This commit is contained in:
Maxim Medvedev
2010-07-03 12:35:02 +04:00
parent a2c358c27d
commit 015d25a455
@@ -73,7 +73,8 @@ public class TreeUtil {
}
@Nullable
public static ASTNode skipElementsBack(ASTNode element, TokenSet types) {
public static ASTNode skipElementsBack(@Nullable ASTNode element, TokenSet types) {
if (element == null) return null;
if (!types.contains(element.getElementType())) return element;
ASTNode parent = element.getTreeParent();