From 3a05a15ac69c565739a9632ce2a2690776805f51 Mon Sep 17 00:00:00 2001 From: Anthony Date: Thu, 26 Dec 2019 08:55:44 +1000 Subject: [PATCH] Add Readme Missed null check --- .idea/vcs.xml | 6 ++++++ pom.xml | 2 +- .../listeners/GriefPreventionListener.java | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3644cbc..1cf8482 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.judgetread GriefPreventionQuickShopBridge - 1.0.0 + 1.0.1 diff --git a/src/main/java/com/github/judgetread/GriefPreventionQuickShopBridge/listeners/GriefPreventionListener.java b/src/main/java/com/github/judgetread/GriefPreventionQuickShopBridge/listeners/GriefPreventionListener.java index e79b266..354314c 100644 --- a/src/main/java/com/github/judgetread/GriefPreventionQuickShopBridge/listeners/GriefPreventionListener.java +++ b/src/main/java/com/github/judgetread/GriefPreventionQuickShopBridge/listeners/GriefPreventionListener.java @@ -56,6 +56,10 @@ public class GriefPreventionListener implements Listener { * @param claim A GriefPrevention claim */ private void deleteAllShopsInClaim(final Claim claim) { + if(claim == null){ + return; + } + Iterator bIt = ((QuickShop) plugin.getQuickShop()).getShopManager().getShopIterator(); if (bIt == null) {