From 133582b9b68e3537849c62df95cceabc9a12924a Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Tue, 15 Mar 2016 16:17:51 -0700 Subject: [PATCH] Fixed some claims not being completely deleted. --- src/me/ryanhamshire/GriefPrevention/DataStore.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/me/ryanhamshire/GriefPrevention/DataStore.java b/src/me/ryanhamshire/GriefPrevention/DataStore.java index e18d4a9..871ae9e 100644 --- a/src/me/ryanhamshire/GriefPrevention/DataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/DataStore.java @@ -582,12 +582,15 @@ public abstract class DataStore for(Long chunkHash : chunkHashes) { ArrayList claimsInChunk = this.chunksToClaimsMap.get(chunkHash); - for(int j = 0; j < claimsInChunk.size(); j++) + if(claimsInChunk != null) { - if(claimsInChunk.get(j).id.equals(claim.id)) + for(int j = 0; j < claimsInChunk.size(); j++) { - claimsInChunk.remove(j); - break; + if(claimsInChunk.get(j).id.equals(claim.id)) + { + claimsInChunk.remove(j); + break; + } } } }