Add Readme

Missed null check
This commit is contained in:
Anthony
2019-12-26 08:55:44 +10:00
committed by Judgetread
parent fcdd59efe3
commit 3a05a15ac6
3 changed files with 11 additions and 1 deletions

View File

@@ -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<Shop> bIt = ((QuickShop) plugin.getQuickShop()).getShopManager().getShopIterator();
if (bIt == null) {