Fixes an NPE when compiling from the IDE.

This commit is contained in:
Hiram Chirino
2012-03-08 11:15:22 -05:00
parent 488cf35aaf
commit 75dcb84c2e
@@ -257,7 +257,7 @@ public class JetCompiler implements TranslatingCompiler {
context.addMessage(INFORMATION, "Using kotlinHome=" + kotlinHome, "", -1, -1);
context.addMessage(INFORMATION, "Invoking in-process compiler " + compilerClassName + " with arguments " + Arrays.asList(arguments), "", -1, -1);
Object rc = exec.invoke(null, out, arguments);
Object rc = exec.invoke(kompiler.newInstance(), out, arguments);
if (rc instanceof Integer) {
return ((Integer) rc).intValue();
}