diff --git a/src/main/java/com/burchard36/inventory/PluginInventory.java b/src/main/java/com/burchard36/inventory/PluginInventory.java index 7c316ff..7c34136 100644 --- a/src/main/java/com/burchard36/inventory/PluginInventory.java +++ b/src/main/java/com/burchard36/inventory/PluginInventory.java @@ -203,6 +203,10 @@ public void onClickEvent(final InventoryClickEvent event) { if (this.clickableItems.get(event.getSlot()) != null) { final ClickableItem clickableItem = this.clickableItems.get(event.getSlot()); final ClickableItemAction clickableItemAction = new ClickableItemAction(event); + if (clickableItem.guiClickableItem == null) { + event.setCancelled(true); + return; + } clickableItem.guiClickableItem.onItemClick(clickableItemAction); if (clickableItemAction.isCancelled()) event.setCancelled(true);