From cf27363f6bd771062935fdf67c9bc613051971d9 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Mon, 14 Feb 2022 12:12:04 -0300 Subject: [PATCH] Ignore if stdin wasn't initialized yet Fixes #23674 --- .../main/java/io/quarkus/deployment/console/AeshConsole.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/console/AeshConsole.java b/core/deployment/src/main/java/io/quarkus/deployment/console/AeshConsole.java index b7e144bbbdd4f..15bec6b648dc3 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/console/AeshConsole.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/console/AeshConsole.java @@ -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) {