aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2016-12-12 20:33:07 +0100
committerGitHub <noreply@github.com>2016-12-12 20:33:07 +0100
commitc684517dedb5fec624b27e46377fe0a46bac7c36 (patch)
tree7c5a472da19ccb56d155d2599f0f647e45ca194f
parent192bfe769306db9b7f9cc7091a1f6f8cddf06899 (diff)
parent2ac32563b7edcc46734903fa17f66f3cb6534e71 (diff)
downloadlombok-c684517dedb5fec624b27e46377fe0a46bac7c36.tar.gz
lombok-c684517dedb5fec624b27e46377fe0a46bac7c36.tar.bz2
lombok-c684517dedb5fec624b27e46377fe0a46bac7c36.zip
Merge pull request #1253 from mebigfatguy/squashnpe
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));
}