From 3d88c4f349ed51285e80c3fafcb3e2d356fa4afe Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Tue, 13 Aug 2019 16:48:55 +0800 Subject: [PATCH] Detect more broken shop infomation in database Former-commit-id: 87d7fe1bf933c5ede0880682eed767becea0bd3f [formerly 0932f356edeb77fc116f4b6136788c8289376aed] Former-commit-id: eb02caf088d20f0142ab250fca89f1d724f333be --- src/main/java/org/maxgamer/quickshop/Shop/ShopLoader.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ShopLoader.java b/src/main/java/org/maxgamer/quickshop/Shop/ShopLoader.java index a79d2d02b..7499c8230 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ShopLoader.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ShopLoader.java @@ -170,6 +170,10 @@ public class ShopLoader { Util.debugLog("Shop World is null"); return true; } + if (shop.getOwner() == null) { + Util.debugLog("Shop Owner is null"); + return true; + } // if (shop.getLocation().getChunk() == null) { // Util.debugLog("Shop Chunk is null"); // return true;