diff --git a/SawCut/Nesting/BestFitEngine.cs b/SawCut/Nesting/BestFitEngine.cs index e67717b..2ae4500 100644 --- a/SawCut/Nesting/BestFitEngine.cs +++ b/SawCut/Nesting/BestFitEngine.cs @@ -65,7 +65,10 @@ namespace SawCut.Nesting } } - best_bin.Items.Add(item); + if (best_bin != null) + best_bin.Items.Add(item); + + } return bins