mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
guard against possible npe
This commit is contained in:
1 parent
7969951125
commit
2ac32563b7
1 file changed
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user