Add null check to duey packet edit check

This commit is contained in:
Sukishyou
2023-04-15 14:36:00 -05:00
parent f1b95fe45e
commit 301f65ce16

View File

@@ -285,7 +285,7 @@ public class DueyProcessor {
if (c.tryacquireClient()) {
try {
int fee = Trade.getFee(sendMesos);
if (sendMessage.length() > 100) {
if (sendMessage != null && sendMessage.length() > 100) {
AutobanFactory.PACKET_EDIT.alert(c.getPlayer(), c.getPlayer().getName() + " tried to packet edit with Quick Delivery on duey.");
log.warn("Chr {} tried to use duey with too long of a text", c.getPlayer().getName());
c.disconnect(true, false);