mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
Fix for NPEs in the eclipse log for
org.eclipse.jdt.internal.compiler.lookup.MethodBinding.sourceMethod(MethodBinding.java:1108)
This commit is contained in:
1 parent
10085d5f2a
commit
614d490ea1
1 file changed
+6
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user