From 0de3e1a0c7f3009502332f475e59b24236eedcfe Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 18 Nov 2015 12:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0SuperItem=E7=9A=84null?= =?UTF-8?q?=E5=88=A4=E6=96=AD...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- .../java/org/maxgamer/QuickShop/Listeners/PlayerListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java b/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java index af995ae..9aa8296 100644 --- a/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java +++ b/src/main/java/org/maxgamer/QuickShop/Listeners/PlayerListener.java @@ -157,6 +157,9 @@ public class PlayerListener implements Listener { return; } final Block b = e.getClickedBlock(); + if (b == null || b.getType() == null) { + return; + } // If that wasn't a shop, search nearby shops if (b.getType() == Material.WALL_SIGN) { final Block attached = Util.getAttached(b);