]> git.draconx.ca Git - slotifier.git/commitdiff
Fix crash when input has no holes.
authorNick Bowler <nbowler@draconx.ca>
Wed, 14 Apr 2021 01:33:13 +0000 (21:33 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 14 Apr 2021 01:33:13 +0000 (21:33 -0400)
When the search tree has no elements, it seems the CNearTreeObjects
function does not give a CVector with zero elements but rather a
null pointer.  This results in a null dereference when that is
passed to CVectorSize, instead of 0 as expected.

Add an explicit check for this case to avoid crashing.


No differences found