}
}
- protected ImportDeclaration[] getBuiltinImports(UpdateListener listener) {
+ public ImportDeclaration[] getBuiltinImports(UpdateListener listener) {
return DEFAULT_IMPORTS;
}
if(compiler.getErrorLog().hasNoErrors())
return new Success<Module>(compiler.getModule());
else {
- if(!options.silent)
+ if(options == null || !options.silent)
LOGGER.error("While compiling " + getModuleName() + ":\n " +
CompilationErrorFormatter.toString(getSourceReader(null), compiler.getErrorLog().getErrors()).replaceAll("\n", "\n "));
return new Failure(compiler.getErrorLog().getErrors());
}
} catch (IOException e) {
- if(!options.silent)
+ if(options == null || !options.silent)
LOGGER.error("Compilation of module " + moduleName + " failed.", e);
return new Failure(e);
}