diff --git a/src/core/lombok/eclipse/EclipseAST.java b/src/core/lombok/eclipse/EclipseAST.java index a7fa876f..dfe754a2 100644 --- a/src/core/lombok/eclipse/EclipseAST.java +++ b/src/core/lombok/eclipse/EclipseAST.java @@ -403,8 +403,9 @@ public class EclipseAST extends AST { } private Collection buildRecordComponents(AbstractVariableDeclaration[] children) { + if (children == null) return Collections.emptyList(); List childNodes = new ArrayList(); - if (children != null) for (int i = 0; i < children.length; i++) { + for (int i = 0; i < children.length; i++) { addIfNotNull(childNodes, buildRecordComponent(children[i])); } return childNodes;