aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2020-07-09 22:53:44 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-07-09 22:53:44 +0200
commitbaa3848498e8a96228e88fa0c54b9e119dba446c (patch)
tree5515d76ad0e8bd0c87b45701b552159174ccfac4 /src/core/lombok/javac
parent2e08e49ed77228527f74104611fb90e5d64492d7 (diff)
downloadlombok-baa3848498e8a96228e88fa0c54b9e119dba446c.tar.gz
lombok-baa3848498e8a96228e88fa0c54b9e119dba446c.tar.bz2
lombok-baa3848498e8a96228e88fa0c54b9e119dba446c.zip
fix assertion error if the param.sym is null
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r--src/core/lombok/javac/handlers/JavacHandlerUtil.java3
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);