aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Dietl <wdietl@gmail.com>2018-08-30 23:17:29 -0400
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-09-11 01:59:19 +0200
commit65fc9897b3c2183cef305a71cf6b064fb9756253 (patch)
tree63f3a5a6461fc152043c1409764e6a23035e8a97
parentc3f34a8447ee4be38193a0c98ab4d265556bd8d7 (diff)
downloadlombok-65fc9897b3c2183cef305a71cf6b064fb9756253.tar.gz
lombok-65fc9897b3c2183cef305a71cf6b064fb9756253.tar.bz2
lombok-65fc9897b3c2183cef305a71cf6b064fb9756253.zip
Handle null annotation array correctly.
-rw-r--r--src/core/lombok/eclipse/handlers/HandleBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleBuilder.java b/src/core/lombok/eclipse/handlers/HandleBuilder.java
index 167d1ba0..3e373a00 100644
--- a/src/core/lombok/eclipse/handlers/HandleBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleBuilder.java
@@ -774,7 +774,7 @@ public class HandleBuilder extends EclipseAnnotationHandler<Builder> {
String setterName = fluent ? fieldNode.getName() : HandlerUtil.buildAccessorName("set", fieldNode.getName());
MethodDeclaration setter = HandleSetter.createSetter(td, deprecate, fieldNode, setterName, nameOfSetFlag, chain, ClassFileConstants.AccPublic,
- sourceNode, Collections.<Annotation>emptyList(), Arrays.asList(annotations));
+ sourceNode, Collections.<Annotation>emptyList(), annotations != null ? Arrays.asList(annotations) : Collections.<Annotation>emptyList());
injectMethod(builderType, setter);
}