aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-09-01 00:07:05 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-09-01 00:07:05 +0200
commit65b9365b5419f69ac78ad895308024b4bac15fbd (patch)
tree5ceb1bd99cf2957e939cc1ae8946222828fa9915
parentc7a45b294d1d8464b529f2513bbca37ade7afb92 (diff)
downloadlombok-65b9365b5419f69ac78ad895308024b4bac15fbd.tar.gz
lombok-65b9365b5419f69ac78ad895308024b4bac15fbd.tar.bz2
lombok-65b9365b5419f69ac78ad895308024b4bac15fbd.zip
Pretty showstopping bug in here.
-rw-r--r--src/lombok/eclipse/handlers/PKG.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lombok/eclipse/handlers/PKG.java b/src/lombok/eclipse/handlers/PKG.java
index 87ccd736..8e58c83f 100644
--- a/src/lombok/eclipse/handlers/PKG.java
+++ b/src/lombok/eclipse/handlers/PKG.java
@@ -241,6 +241,7 @@ class PKG {
static Annotation[] findAnnotations(FieldDeclaration field, Pattern namePattern) {
List<Annotation> result = new ArrayList<Annotation>();
+ if ( field.annotations == null ) return new Annotation[0];
for (Annotation annotation : field.annotations) {
TypeReference typeRef = annotation.type;
if ( typeRef != null && typeRef.getTypeName()!= null ) {