diff --git a/src/main/java/com/ryanmichela/sshd/implementations/SSHDCommandSender.java b/src/main/java/com/ryanmichela/sshd/implementations/SSHDCommandSender.java index cfceaaa..5f4975a 100644 --- a/src/main/java/com/ryanmichela/sshd/implementations/SSHDCommandSender.java +++ b/src/main/java/com/ryanmichela/sshd/implementations/SSHDCommandSender.java @@ -31,6 +31,7 @@ public class SSHDCommandSender implements ConsoleCommandSender, CommandSender { } public void sendRawMessage(String message) { + if(ConsoleShellFactory.ConsoleShell.consoleReader == null) return; try { ConsoleShellFactory.ConsoleShell.consoleReader.println(ChatColor.stripColor(message)); } catch (IOException e) {