aboutsummaryrefslogtreecommitdiff
path: root/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-17 19:53:21 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-17 19:53:21 +0200
commitccf0e5da4124af22fc17b07d0a336a4e3463e030 (patch)
treea85dac6ccd18990c35b6b0bf88ae98fabbc140bd /src/lombok
parentacbd2308b5711d8b9a7aee04da2346f937d69474 (diff)
downloadlombok-ccf0e5da4124af22fc17b07d0a336a4e3463e030.tar.gz
lombok-ccf0e5da4124af22fc17b07d0a336a4e3463e030.tar.bz2
lombok-ccf0e5da4124af22fc17b07d0a336a4e3463e030.zip
NullPointerExceptions were showing up in Eclipse, when a 2+ dimensional array of Statements contains inner arrays that are null. Fixed that.
Diffstat (limited to 'src/lombok')
-rw-r--r--src/lombok/core/AST.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lombok/core/AST.java b/src/lombok/core/AST.java
index 99902672..2229f9ef 100644
--- a/src/lombok/core/AST.java
+++ b/src/lombok/core/AST.java
@@ -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);
}
}