aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Brosius <dbrosius@mebigfatguy.com>2016-12-04 01:17:54 -0500
committerDave Brosius <dbrosius@mebigfatguy.com>2016-12-04 01:17:54 -0500
commit2ac32563b7edcc46734903fa17f66f3cb6534e71 (patch)
treea1a44cb226c54eef2bb24643810f01f147b67e24
parent7969951125db42a84fbdd46d4a5fb804842e00f9 (diff)
downloadlombok-2ac32563b7edcc46734903fa17f66f3cb6534e71.tar.gz
lombok-2ac32563b7edcc46734903fa17f66f3cb6534e71.tar.bz2
lombok-2ac32563b7edcc46734903fa17f66f3cb6534e71.zip
guard against possible npe
-rw-r--r--src/core/lombok/javac/handlers/HandleDelegate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleDelegate.java b/src/core/lombok/javac/handlers/HandleDelegate.java
index 680e7745..49bef769 100644
--- a/src/core/lombok/javac/handlers/HandleDelegate.java
+++ b/src/core/lombok/javac/handlers/HandleDelegate.java
@@ -312,7 +312,7 @@ public class HandleDelegate extends JavacAnnotationHandler<Delegate> {
for (TypeMirror param : sig.type.getTypeVariables()) {
Name name = ((TypeVar) param).tsym.name;
- ListBuffer<JCExpression> bounds = types.getBounds((TypeVar) param).isEmpty() ? null : new ListBuffer<JCExpression>();
+ ListBuffer<JCExpression> bounds = new ListBuffer<JCExpression>();
for (Type type : types.getBounds((TypeVar) param)) {
bounds.append(JavacResolution.typeToJCTree(type, annotation.getAst(), true));
}