diff --git a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java index 9c066f519..38679d0fe 100644 --- a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java @@ -138,7 +138,7 @@ public class InventoryListener implements Listener{ public void onInventoryClickEvent(InventoryClickEvent event) { ItemStack item = event.getCurrentItem(); - if (item.containsEnchantment(Enchantment.DIG_SPEED)) { + if (item != null && item.containsEnchantment(Enchantment.DIG_SPEED)) { ItemMeta itemMeta = item.getItemMeta(); if (itemMeta.hasLore()) {