Fix null reference risk in BestFitEngine

This commit is contained in:
AJ
2025-10-01 23:25:43 -04:00
parent d64d5a8d53
commit b8612f72d7

View File

@@ -65,7 +65,10 @@ namespace SawCut.Nesting
}
}
best_bin.Items.Add(item);
if (best_bin != null)
best_bin.Items.Add(item);
}
return bins