From 82f6c99c01ac924c1f6aa0177c572a2c83949814 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sun, 14 Feb 2016 14:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AE=B1=E5=AD=90=E7=9A=84?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E4=B8=BANull=E6=98=AF=E4=BA=A7=E7=94=9F?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- pom.xml | 4 ++-- .../org/maxgamer/QuickShop/Listeners/ProtectListener.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 4a73ac1..9354fc3 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.maxgamer QuickShop - 1.8.1 + 1.8.2 快捷商店重置版本... ${project.name} @@ -56,7 +56,7 @@ http://ci.citycraft.cn:8080 DEBUG &a全新版本 &c虚拟悬浮物(橙子提供 对 就是那个汉化COI的逗比) &e7老板修复逗比BUG... - &c修复PlayerInteractEvent错误参数导致GuiShopManager的报错... + &c修复PlayerInteractEvent错误参数导致GuiShopManager的报错...;&c修复箱子的标题为Null是产生的报错... UTF-8 diff --git a/src/main/java/org/maxgamer/QuickShop/Listeners/ProtectListener.java b/src/main/java/org/maxgamer/QuickShop/Listeners/ProtectListener.java index 78f30e6..cb369f1 100644 --- a/src/main/java/org/maxgamer/QuickShop/Listeners/ProtectListener.java +++ b/src/main/java/org/maxgamer/QuickShop/Listeners/ProtectListener.java @@ -84,7 +84,7 @@ public class ProtectListener implements Listener { final Inventory inv = e.getInventory(); final int solt = e.getSlot(); if (inv.getType() != InventoryType.PLAYER && inv.getType() != InventoryType.HOPPER) { - if (inv.getTitle().equalsIgnoreCase(plugin.getConfigManager().getGuiTitle())) { + if (inv.getTitle() != null && inv.getTitle().equalsIgnoreCase(plugin.getConfigManager().getGuiTitle())) { e.setCancelled(true); p.closeInventory(); }