mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-16 08:25:42 +00:00
NullPointerExceptions were showing up in Eclipse, when a 2+ dimensional array of Statements contains inner arrays that are null. Fixed that.
This commit is contained in:
@@ -250,6 +250,7 @@ public abstract class AST<N> {
|
||||
Node node = buildStatement(v);
|
||||
if ( node != null ) list.add(nodeType.cast(node));
|
||||
} else for ( Object v : (Object[])array ) {
|
||||
if ( v == null ) return;
|
||||
buildWithArray(nodeType, v, list, dim-1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user