From 58927a437bc1186c1e994d904373655f2f39fda4 Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 24 Sep 2019 19:47:47 -0400 Subject: [PATCH] NPE Fix with item display. --- .../com/songoda/ultimatekits/handlers/DisplayItemHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/ultimatekits/handlers/DisplayItemHandler.java b/src/main/java/com/songoda/ultimatekits/handlers/DisplayItemHandler.java index a0d7851..11547d0 100644 --- a/src/main/java/com/songoda/ultimatekits/handlers/DisplayItemHandler.java +++ b/src/main/java/com/songoda/ultimatekits/handlers/DisplayItemHandler.java @@ -40,7 +40,7 @@ public class DisplayItemHandler { Kit kit = kitBlockData.getKit(); - if (kit.getReadableContents(null, false, false, false) == null) return; + if (kit == null) return; List list = kit.getReadableContents(null, false, false, false); if (list.isEmpty()) return;