--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java 2012/04/05 12:50:15 1775 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java 2012/04/05 14:10:07 1777 @@ -127,7 +127,9 @@ void removeChest(Location loc) { SnitchingChestBean chest = chestMap.remove(loc); - plugin.getDatabase().delete(chest); + if (chest != null) { + plugin.getDatabase().delete(chest); + } } void loadChests() { @@ -136,6 +138,8 @@ Location loc = getChestLocation(server, chest); chestMap.put(loc, chest); } + + plugin.getLogger().info("[SnitchingChest] loaded " + chestMap.size() + " chests"); }