Fix possible null pointer in the mail command

This commit is contained in:
Melledy
2023-10-18 04:56:46 -07:00
parent fcc24c0cca
commit 594898fd57

View File

@@ -56,7 +56,7 @@ public class MailCommand implements CommandHandler {
// Send to target
args.getTarget().getMailbox().sendMail(mail);
sender.sendMessage("Sending mail to " + args.getTarget().getName());
this.sendMessage(sender, "Sending mail to " + args.getTarget().getName());
}
}