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

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -6,7 +6,7 @@
<groupId>com.github.judgetread</groupId>
<artifactId>GriefPreventionQuickShopBridge</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<licenses>
<license>

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) {