Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Check for nulls before dispatching to Dynmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed May 3, 2015
1 parent bbf972c commit 41484b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/cnaude/purpleirc/Hooks/DynmapHook.java
Expand Up @@ -43,6 +43,12 @@ public DynmapHook(PurpleIRC plugin) {
* @param message
*/
public void sendMessage(String nick, String message) {
if (nick == null) {
nick = "";
}
if (message == null) {
return;
}
dynmapAPI.sendBroadcastToWeb(nick, message);
}
}

0 comments on commit 41484b7

Please sign in to comment.