Jline's ConsoleReader reads empty string instead of null in stdin-less
environment, like exec() from many languages. Add empty check.
This commit is contained in:
@ -86,7 +86,7 @@
|
||||
+ {
|
||||
+ s = bufferedreader.readLine();
|
||||
+ }
|
||||
+ if (s != null)
|
||||
+ if (s != null && !s.isEmpty())
|
||||
+ {
|
||||
+ this.server.addPendingCommand(s, this.server);
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user