From 4e83bab707d59263efec8fbb500bed00cec1a57c Mon Sep 17 00:00:00 2001 From: John Lewin Date: Mon, 15 Aug 2016 13:34:38 -0700 Subject: [PATCH] Avoid null conditional result on awaited call to workaround Mono error - Issue MatterHackers/MCCentral#283 --- SlicerConfiguration/Settings/ProfileManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SlicerConfiguration/Settings/ProfileManager.cs b/SlicerConfiguration/Settings/ProfileManager.cs index b4b5287d0..5496b34a5 100644 --- a/SlicerConfiguration/Settings/ProfileManager.cs +++ b/SlicerConfiguration/Settings/ProfileManager.cs @@ -279,10 +279,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration { return printerSettings; } - else + else if (ApplicationController.GetPrinterProfileAsync != null) { // Attempt to load from MCWS if missing on disk - printerSettings = await ApplicationController.GetPrinterProfileAsync?.Invoke (printerInfo, null); + printerSettings = await ApplicationController.GetPrinterProfileAsync(printerInfo, null); if (printerSettings != null) { // If successful, persist downloaded profile and return