diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-17 19:53:21 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-17 19:53:21 +0200 |
commit | ccf0e5da4124af22fc17b07d0a336a4e3463e030 (patch) | |
tree | a85dac6ccd18990c35b6b0bf88ae98fabbc140bd /src | |
parent | acbd2308b5711d8b9a7aee04da2346f937d69474 (diff) | |
download | lombok-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')
-rw-r--r-- | src/lombok/core/AST.java | 1 |
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); } } |