From: Nick Bowler Date: Wed, 14 Apr 2021 01:33:13 +0000 (-0400) Subject: Fix crash when input has no holes. X-Git-Tag: v1.2~8 X-Git-Url: http://git.draconx.ca/gitweb/slotifier.git/commitdiff_plain/edd5c230afdc7341e5a5564d9c8ee714688705fe?ds=sidebyside;hp=edd5c230afdc7341e5a5564d9c8ee714688705fe Fix crash when input has no holes. 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. ---