Skip to content
Snippets Groups Projects
Commit 7d90de1f authored by Florian Angerer's avatar Florian Angerer
Browse files

Do not assume existence of file option in Rscript.

parent 73436cde
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ public class RscriptCommand {
errStream).build()) {
consoleHandler.setContext(context);
String fileOption = options.getString(RCmdOption.FILE);
return RCommand.readEvalPrint(context, consoleHandler, new File(fileOption));
return RCommand.readEvalPrint(context, consoleHandler, fileOption != null ? new File(fileOption) : null);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment