Skip to content
Snippets Groups Projects
Commit eebb77e2 authored by Mick Jordan's avatar Mick Jordan
Browse files

fix eof console bug

parent b4c47f76
Branches
No related tags found
No related merge requests found
......@@ -55,7 +55,11 @@ public class JLineConsoleHandler implements RContext.ConsoleHandler {
@TruffleBoundary
public String readLine() {
try {
return console.readLine() + "\n";
String line = console.readLine();
if (line != null) {
line += "\n";
}
return line;
} catch (IOException ex) {
throw Utils.fail("unexpected error reading console input");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment