fix for NPE

This commit is contained in:
Manu Sridharan 2013-07-10 09:44:17 -07:00
parent c71652de34
commit 550eca255b
1 changed files with 2 additions and 1 deletions

View File

@ -552,7 +552,8 @@ public abstract class JavaSourceLoaderImpl extends ClassLoaderImpl {
@Override
public AstJavaInvokeInstruction JavaInvokeInstruction(int result[], int[] params, int exception, CallSiteReference site) {
return new AstJavaInvokeInstruction(result[0], params, exception, site);
return result == null ? new AstJavaInvokeInstruction(params, exception, site) : new AstJavaInvokeInstruction(result[0],
params, exception, site);
}
@Override