Skip to content

Commit

Permalink
Fix npe.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Oct 4, 2015
1 parent 289d727 commit b749dfd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -96,7 +96,7 @@ public void onPacketReceiving(final PacketEvent event) {
final DataPacketFlying packetData = packetMismatch ? null : interpretPacket(event, time);

// 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] ?
event.setCancelled(true);
return;
Expand Down

0 comments on commit b749dfd

Please sign in to comment.