diff --git a/src/main/java/com/songoda/skyblock/utils/item/nInventoryUtil.java b/src/main/java/com/songoda/skyblock/utils/item/nInventoryUtil.java index bf5d69a7..c578eb73 100644 --- a/src/main/java/com/songoda/skyblock/utils/item/nInventoryUtil.java +++ b/src/main/java/com/songoda/skyblock/utils/item/nInventoryUtil.java @@ -192,7 +192,7 @@ public class nInventoryUtil { public Item(ItemStack is, String itemDisplayname, List itemLore, Placeholder[] placeholders, Enchantment[] itemEnchantments, ItemFlag[] itemFlags) { this.is = is; - this.itemDisplayname = ChatColor.translateAlternateColorCodes('&', itemDisplayname); + this.itemDisplayname = itemDisplayname == null ? null : ChatColor.translateAlternateColorCodes('&', itemDisplayname); this.itemLore = itemLore; this.placeholders = placeholders; this.itemEnchantments = itemEnchantments;