aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok
diff options
context:
space:
mode:
Diffstat (limited to 'src/eclipseAgent/lombok')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
index 6908d623..6fdcfa63 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
@@ -620,7 +620,12 @@ public class PatchDelegate {
method.arguments = new Argument[binding.parameters.length];
call.arguments = new Expression[method.arguments.length];
for (int i = 0; i < method.arguments.length; i++) {
- AbstractMethodDeclaration sourceElem = pair.base.sourceMethod();
+ AbstractMethodDeclaration sourceElem;
+ try {
+ sourceElem = pair.base.sourceMethod();
+ } catch (Exception e) {
+ sourceElem = null;
+ }
char[] argName;
if (sourceElem == null) argName = ("arg" + i).toCharArray();
else {