diff options
author | Dave Brosius <dbrosius@mebigfatguy.com> | 2016-12-04 01:17:54 -0500 |
---|---|---|
committer | Dave Brosius <dbrosius@mebigfatguy.com> | 2016-12-04 01:17:54 -0500 |
commit | 2ac32563b7edcc46734903fa17f66f3cb6534e71 (patch) | |
tree | a1a44cb226c54eef2bb24643810f01f147b67e24 /src/core | |
parent | 7969951125db42a84fbdd46d4a5fb804842e00f9 (diff) | |
download | lombok-2ac32563b7edcc46734903fa17f66f3cb6534e71.tar.gz lombok-2ac32563b7edcc46734903fa17f66f3cb6534e71.tar.bz2 lombok-2ac32563b7edcc46734903fa17f66f3cb6534e71.zip |
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)); } |