mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +00:00
Merge pull request #1253 from mebigfatguy/squashnpe
guard against possible npe
This commit is contained in:
commit
c684517ded
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