From 2ac32563b7edcc46734903fa17f66f3cb6534e71 Mon Sep 17 00:00:00 2001 From: Dave Brosius Date: Sun, 4 Dec 2016 01:17:54 -0500 Subject: guard against possible npe --- src/core/lombok/javac/handlers/HandleDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/lombok/javac') 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 { for (TypeMirror param : sig.type.getTypeVariables()) { Name name = ((TypeVar) param).tsym.name; - ListBuffer bounds = types.getBounds((TypeVar) param).isEmpty() ? null : new ListBuffer(); + ListBuffer bounds = new ListBuffer(); for (Type type : types.getBounds((TypeVar) param)) { bounds.append(JavacResolution.typeToJCTree(type, annotation.getAst(), true)); } -- cgit