Guard against null messages in Messenger. Fixes #391
This commit is contained in:
1 parent
228923dab6
commit
5d1ec8eb56
1 file changed
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user