Fix for NPEs in the eclipse log for

org.eclipse.jdt.internal.compiler.lookup.MethodBinding.sourceMethod(MethodBinding.java:1108)
This commit is contained in:
Reinier Zwitserloot committed 2012-10-23 11:19:35 +02:00
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 {