From 8706a2aeaf4dfead8a0bef4c92c9648e898f96af Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 25 Sep 2019 10:51:50 -0700 Subject: [PATCH] Guard for null - Issue MatterHackers/MatterControl#4665 MC on macOS crashes when exporting G-code --- MatterControlLib/CustomWidgets/ExportPrintItemPage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MatterControlLib/CustomWidgets/ExportPrintItemPage.cs b/MatterControlLib/CustomWidgets/ExportPrintItemPage.cs index 1b9bff7b3..23b1f3f49 100644 --- a/MatterControlLib/CustomWidgets/ExportPrintItemPage.cs +++ b/MatterControlLib/CustomWidgets/ExportPrintItemPage.cs @@ -193,7 +193,7 @@ namespace MatterHackers.MatterControl return; } - DoExport(libraryItems, printer, activePlugin, centerOnBed, showInFolderAfterSave.Checked); + DoExport(libraryItems, printer, activePlugin, centerOnBed, showInFolderAfterSave?.Checked == true); this.Parent.CloseOnIdle(); };