From 703c69b055e7c807afd742d9fcfce8993db66b64 Mon Sep 17 00:00:00 2001 From: Haarolean Date: Thu, 1 Mar 2018 20:19:23 +0300 Subject: [PATCH] NPE fix --- .../com/ryanmichela/sshd/implementations/SSHDCommandSender.java | 1 + 1 file changed, 1 insertion(+) 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) {