From 3eab3c5946288c31a130a20499f8a440ac7c09af Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Tue, 7 Apr 2026 15:45:41 -0400 Subject: [PATCH] fix: guard against null actionManager during PlateView construction Plate setter is called in the constructor before actionManager is initialized, causing a NullReferenceException on startup. Co-Authored-By: Claude Opus 4.6 (1M context) --- OpenNest/Controls/PlateView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenNest/Controls/PlateView.cs b/OpenNest/Controls/PlateView.cs index 2c959ae..e6b1674 100644 --- a/OpenNest/Controls/PlateView.cs +++ b/OpenNest/Controls/PlateView.cs @@ -202,7 +202,7 @@ namespace OpenNest.Controls foreach (var part in plate.Parts) parts.Add(LayoutPart.Create(part, this)); - actionManager.OnPlateChanged(); + actionManager?.OnPlateChanged(); } public string Status