From 65b9365b5419f69ac78ad895308024b4bac15fbd Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 1 Sep 2009 00:07:05 +0200 Subject: Pretty showstopping bug in here. --- src/lombok/eclipse/handlers/PKG.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lombok/eclipse') 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 result = new ArrayList(); + if ( field.annotations == null ) return new Annotation[0]; for (Annotation annotation : field.annotations) { TypeReference typeRef = annotation.type; if ( typeRef != null && typeRef.getTypeName()!= null ) { -- cgit