mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +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:
1 parent
acbd2308b5
commit
ccf0e5da41
1 file changed
+1
@@ -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