diff options
author | Roel Spilker <r.spilker@gmail.com> | 2016-12-12 20:33:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 20:33:07 +0100 |
commit | c684517dedb5fec624b27e46377fe0a46bac7c36 (patch) | |
tree | 7c5a472da19ccb56d155d2599f0f647e45ca194f /src/core | |
parent | 192bfe769306db9b7f9cc7091a1f6f8cddf06899 (diff) | |
parent | 2ac32563b7edcc46734903fa17f66f3cb6534e71 (diff) | |
download | lombok-c684517dedb5fec624b27e46377fe0a46bac7c36.tar.gz lombok-c684517dedb5fec624b27e46377fe0a46bac7c36.tar.bz2 lombok-c684517dedb5fec624b27e46377fe0a46bac7c36.zip |
Merge pull request #1253 from mebigfatguy/squashnpe
guard against possible npe
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleDelegate.java | 2 |
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)); } |