From baa3848498e8a96228e88fa0c54b9e119dba446c Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Thu, 9 Jul 2020 22:53:44 +0200 Subject: fix assertion error if the param.sym is null --- src/core/lombok/javac/handlers/JavacHandlerUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/lombok/javac') 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 newParams = new ListBuffer(); 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); -- cgit