mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-02 16:37:25 +02:00
Fix npe.
This commit is contained in:
parent
289d72757b
commit
b749dfdc42
@ -96,7 +96,7 @@ public class FlyingFrequency extends BaseAdapter {
|
|||||||
final DataPacketFlying packetData = packetMismatch ? null : interpretPacket(event, time);
|
final DataPacketFlying packetData = packetMismatch ? null : interpretPacket(event, time);
|
||||||
|
|
||||||
// Prevent processing packets with obviously malicious content.
|
// Prevent processing packets with obviously malicious content.
|
||||||
if (isInvalidContent(packetData)) {
|
if (packetData != null && isInvalidContent(packetData)) {
|
||||||
// TODO: More specific, log and kick or log once [/limited] ?
|
// TODO: More specific, log and kick or log once [/limited] ?
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user