Check for nulls before dispatching to Dynmap.

This commit is contained in:
cnaude 2015-05-03 10:29:51 -07:00
parent 3101663625
commit 44cc7de81f

View File

@ -43,6 +43,12 @@ public class DynmapHook {
* @param message * @param message
*/ */
public void sendMessage(String nick, String message) { public void sendMessage(String nick, String message) {
if (nick == null) {
nick = "";
}
if (message == null) {
return;
}
dynmapAPI.sendBroadcastToWeb(nick, message); dynmapAPI.sendBroadcastToWeb(nick, message);
} }
} }