1
0
Fork 0

fix nullpointer

This commit is contained in:
Chayapak 2023-06-05 17:36:31 +07:00
parent 5d4aa73fd6
commit 72df0bbaba

View file

@ -64,6 +64,8 @@ public class MailCommand implements Command {
case "send" -> {
int senderMailsSentTotal = 0;
for (Mail mail : MailPlugin.mails()) {
if (mail.sentBy() == null) continue;
if (!mail.sentBy().equals(sender.profile().getName())) continue;
senderMailsSentTotal++;
}