From f91b10b95c9de006007afc4060f1e11832c445db Mon Sep 17 00:00:00 2001 From: splotycode Date: Sat, 18 Jun 2022 01:20:13 +0200 Subject: [PATCH] PacketProcessor: Fix NPE spam in disconnect --- .../java/dev/brighten/anticheat/processing/PacketProcessor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Impl/src/main/java/dev/brighten/anticheat/processing/PacketProcessor.java b/Impl/src/main/java/dev/brighten/anticheat/processing/PacketProcessor.java index 2c27f7e0..19b8e4af 100644 --- a/Impl/src/main/java/dev/brighten/anticheat/processing/PacketProcessor.java +++ b/Impl/src/main/java/dev/brighten/anticheat/processing/PacketProcessor.java @@ -61,6 +61,7 @@ public class PacketProcessor { if(KauriAPI.INSTANCE.getPacketExemptedPlayers().contains(data.uuid)) return; ThreadHandler.INSTANCE.getThread(data).runTask(() -> { + if (data.checkManager == null) return; try { if(outgoingPackets.contains(info.getType())) { processServer(data, info.getPacket(), info.getType(), info.getTimestamp());