mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 14:24:37 +01:00
Fix possible null pointer in the mail command
This commit is contained in:
@@ -56,7 +56,7 @@ public class MailCommand implements CommandHandler {
|
|||||||
// Send to target
|
// Send to target
|
||||||
args.getTarget().getMailbox().sendMail(mail);
|
args.getTarget().getMailbox().sendMail(mail);
|
||||||
|
|
||||||
sender.sendMessage("Sending mail to " + args.getTarget().getName());
|
this.sendMessage(sender, "Sending mail to " + args.getTarget().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user