mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user