From 669019f7dc71808785ab5e3b9338286c2b176455 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 12 Mar 2022 12:25:03 +0000 Subject: [PATCH] Added null safety check --- .../java/com/willfp/ecoenchants/display/EnchantDisplay.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java index 91bc8c5d..12bf600e 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java @@ -210,7 +210,9 @@ public class EnchantDisplay extends DisplayModule { ItemMeta meta = itemStack.getItemMeta(); - assert meta != null; + if (meta == null) { + return; + } PersistentDataContainer pdc = meta.getPersistentDataContainer();