1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2025-10-02 12:37:27 +00:00

修复一个NPE错误...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2016-02-19 09:34:48 +08:00
parent 82f6c99c01
commit 4ab5a1aa67
2 changed files with 8 additions and 3 deletions

View File

@ -61,7 +61,8 @@ public class ProtectListener implements Listener {
final Shop srcshop = getShop(src);
final Shop meshop = getShop(me);
final Shop desshop = getShop(des);
if ((srcshop != null && meshop == null) || (meshop != null && desshop == null) || (srcshop != null && desshop != null && srcshop.getOwner().equalsIgnoreCase(desshop.getOwner()))) {
if ((srcshop != null && meshop == null) || (meshop != null && desshop == null)
|| (srcshop != null && desshop != null && srcshop.getOwner() != null && srcshop.getOwner().equalsIgnoreCase(desshop.getOwner()))) {
e.setCancelled(true);
}
}