Skip to content

Commit ef8e4aa

Browse files
author
Stefan Seil
committed
Fix NRE when calling Remove() on empty OctTree
1 parent 6adfb4d commit ef8e4aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CADability/OctTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ internal void RemoveObject(TT objectToRemove)
456456
{
457457
if (ppp == null)
458458
{
459-
list.Remove(objectToRemove);
459+
list?.Remove(objectToRemove);
460460
}
461461
else
462462
{

0 commit comments

Comments
 (0)