From f0a0d760a01eda553b8a64f20310bcfe0fd32378 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 13 Jan 2017 14:11:10 +0100 Subject: [PATCH] Fixed NPE on hologram updating Fixes #63 --- src/main/java/de/epiceric/shopchest/utils/ShopUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java b/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java index efff8ee..b04b303 100644 --- a/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java +++ b/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java @@ -259,7 +259,7 @@ public class ShopUtils { } } } else { - if (shop.getHologram().isVisible(player)) shop.getHologram().hidePlayer(player); + if (shop.getHologram() != null && shop.getHologram().isVisible(player)) shop.getHologram().hidePlayer(player); } if (distSqr <= itemDistSqr) {