Guard against null messages in Messenger. Fixes #391

This commit is contained in:
Andreas Troelsen
2017-10-09 23:49:47 +02:00
parent 228923dab6
commit 5d1ec8eb56
@@ -16,7 +16,7 @@ public class Messenger
public boolean tell(CommandSender p, String msg) { public boolean tell(CommandSender p, String msg) {
// If the input sender is null or the string is empty, return. // If the input sender is null or the string is empty, return.
if (p == null || msg.equals("")) { if (p == null || msg == null || msg.equals("")) {
return false; return false;
} }