Skip to content

Commit

Permalink
Ignore if stdin wasn't initialized yet
Browse files Browse the repository at this point in the history
Fixes #23674
  • Loading branch information
gastaldi committed Feb 14, 2022
1 parent ea40993 commit cf27363
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ public void run() {
conn.setStdinHandler(keys -> {

QuarkusConsole.StateChangeInputStream redirectIn = QuarkusConsole.REDIRECT_IN;
// redirectIn might have not been initialized yet
if (redirectIn == null) {
return;
}
//see if the users application wants to read the keystrokes:
int pos = 0;
while (pos < keys.length) {
Expand Down

0 comments on commit cf27363

Please sign in to comment.