From 04760fb2a451bee70eb91c5507eea34cfee9242b Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 3 Oct 2018 21:51:03 -0700 Subject: [PATCH] Ignore doubleclick if no workspace is active - Issue MatterHackers/MCCentral#4223 Double clicking a part on the left bar before opening a printer throws an exception --- MatterControlLib/Library/Widgets/ListView/ListView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MatterControlLib/Library/Widgets/ListView/ListView.cs b/MatterControlLib/Library/Widgets/ListView/ListView.cs index b86aeacf7..f3c96c914 100644 --- a/MatterControlLib/Library/Widgets/ListView/ListView.cs +++ b/MatterControlLib/Library/Widgets/ListView/ListView.cs @@ -422,7 +422,7 @@ namespace MatterHackers.MatterControl.CustomWidgets if (itemModel != null) { var activeContext = ApplicationController.Instance.DragDropData; - activeContext.SceneContext.AddToPlate(new[] { itemModel }); + activeContext.SceneContext?.AddToPlate(new[] { itemModel }); } } });