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:
Reinier Zwitserloot
2009-06-17 19:53:21 +02:00
parent acbd2308b5
commit ccf0e5da41
+1
View File
@@ -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);
}
}