Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Either 'capacity' should be properly used. Or null checks are necessary in all places where the raw 'data' array is used. Also what happens if the data array is full? addData should at least throw an exception then:
public void addData(QuadTreeData data) { if (this.dataCount < this.capacity) { this.data[dataCount] = data; this.dataCount++; } }