From 8d85d5b2565caf75d51eef0d211ae63d5d2cb6a6 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 26 Jan 2021 04:13:53 +1300 Subject: [PATCH] Simple null check, fixes #542 --- .../packets/packetlisteners/PacketListenerInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerInventory.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerInventory.java index 0cefdce9..54f4febe 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerInventory.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerInventory.java @@ -41,7 +41,7 @@ public class PacketListenerInventory extends PacketAdapter { final Player player = event.getPlayer(); - if (player.getVehicle() != null) { + if (player == null || player.getVehicle() != null) { return; }