From 43750b11f7e25bc0967b0f007bb5d8ada4b6a1da Mon Sep 17 00:00:00 2001 From: ASangarin Date: Mon, 21 Dec 2020 01:51:50 +0100 Subject: [PATCH] Hopefully fixes the last of the ItemBrowser null pointers --- src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java b/src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java index 8f2abf38..574b9fa8 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java @@ -135,7 +135,7 @@ public class ItemBrowser extends PluginInventory { if(lore == null) { stack = nbtItem.toItem(); ItemMeta meta = stack.getItemMeta(); - List newLore = meta.getLore(); + List newLore = meta.hasLore() ? meta.getLore() : new ArrayList<>(); newLore.add(""); if (deleteMode) { newLore.add(ChatColor.RED + AltChar.cross + " CLICK TO DELETE " + AltChar.cross);