Bug fix: Initialization in database data store.

This commit is contained in:
ryanhamshire 2014-10-28 19:28:29 -07:00
parent 9e65076f6a
commit 51810a905a

View File

@ -318,6 +318,12 @@ public class DatabaseDataStore extends DataStore
//find top level claim parent //find top level claim parent
Claim topLevelClaim = this.getClaimAt(childClaim.getLesserBoundaryCorner(), true, null); Claim topLevelClaim = this.getClaimAt(childClaim.getLesserBoundaryCorner(), true, null);
if(topLevelClaim == null)
{
claimsToRemove.add(childClaim);
continue;
}
//add this claim to the list of children of the current top level claim //add this claim to the list of children of the current top level claim
childClaim.parent = topLevelClaim; childClaim.parent = topLevelClaim;
topLevelClaim.children.add(childClaim); topLevelClaim.children.add(childClaim);