Fixes an NPE when compiling from the IDE.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user