diff --git a/src/main/java/com/cnaude/purpleirc/Hooks/DynmapHook.java b/src/main/java/com/cnaude/purpleirc/Hooks/DynmapHook.java index 58f8b2b..379bfdd 100644 --- a/src/main/java/com/cnaude/purpleirc/Hooks/DynmapHook.java +++ b/src/main/java/com/cnaude/purpleirc/Hooks/DynmapHook.java @@ -43,6 +43,12 @@ public class DynmapHook { * @param message */ public void sendMessage(String nick, String message) { + if (nick == null) { + nick = ""; + } + if (message == null) { + return; + } dynmapAPI.sendBroadcastToWeb(nick, message); } }