Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#18 unchecked return from getSubnodeIndex

open
nobody
None
5
2011-07-04
2011-07-04
Sandro Santilli
No

In both Bintree#insert and Quadtree#insertNode there's no check performed on the return from getSubnodeIndex, assuming it will not be -1.
Maybe an assertion should be added.

Discussion