diff options
-rw-r--r-- | src/core/lombok/javac/handlers/JavacHandlerUtil.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/JavacHandlerUtil.java b/src/core/lombok/javac/handlers/JavacHandlerUtil.java index 3655e680..e0af0e52 100644 --- a/src/core/lombok/javac/handlers/JavacHandlerUtil.java +++ b/src/core/lombok/javac/handlers/JavacHandlerUtil.java @@ -1205,9 +1205,10 @@ public class JavacHandlerUtil { if (method.getParameters() != null && !method.getParameters().isEmpty()) { ListBuffer<Symbol.VarSymbol> newParams = new ListBuffer<Symbol.VarSymbol>(); for (JCTree.JCVariableDecl param : method.getParameters()) { - newParams.append(param.sym); + if (param.sym != null) newParams.append(param.sym); } params = newParams.toList(); + if (params.length() != method.getParameters().length()) params = null; } fixMethodMirror(typeNode.getContext(), typeNode.getElement(), method.getModifiers().flags, method.getName(), paramTypes, params, returnType); |