1
0
forked from xjboss/KCauldronX

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:
Sergey Shatunov
2016-02-09 21:19:36 +07:00
parent 3b244893d9
commit 0dd6c7efdf
2 changed files with 3 additions and 16 deletions

View File

@ -86,7 +86,7 @@
+ {
+ s = bufferedreader.readLine();
+ }
+ if (s != null)
+ if (s != null && !s.isEmpty())
+ {
+ this.server.addPendingCommand(s, this.server);
+ }