Guard against null messages in Messenger. Fixes #391
This commit is contained in:
@@ -16,7 +16,7 @@ public class Messenger
|
||||
|
||||
public boolean tell(CommandSender p, String msg) {
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user