From f3b5838a16c3ea8aa77b4d27ce376d490f40431f Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 21 Jan 2020 21:42:05 +0100 Subject: [PATCH] Hotfix NPE --- SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java b/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java index 0ec89b9..40e544d 100644 --- a/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java +++ b/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java @@ -92,7 +92,7 @@ public class SWInventory implements Listener { return; e.setCancelled(true); - if(callbacks.containsKey(e.getRawSlot())) + if(callbacks.containsKey(e.getRawSlot()) && callbacks.get(e.getRawSlot()) != null) callbacks.get(e.getRawSlot()).clicked(e.getClick()); }