From 75b4b4e4d059e29fa42f3ba436f6974b65bb23b6 Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Wed, 23 Nov 2022 11:08:15 +0100 Subject: [PATCH] - correzione se lavorazione nulla --- Icarus/TopPanel/TopPanelVM.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Icarus/TopPanel/TopPanelVM.vb b/Icarus/TopPanel/TopPanelVM.vb index 9871554..d3486bc 100644 --- a/Icarus/TopPanel/TopPanelVM.vb +++ b/Icarus/TopPanel/TopPanelVM.vb @@ -277,7 +277,7 @@ Public Class TopPanelVM m_MachiningList.Remove(MachiningIndex.Empty()) End If ' se nuova lavorazione e' none - If SelMachining.sGUID = Guid.Empty AndAlso Not MachiningList.Any(Function(x) x.sGUID = MachiningIndex.Empty.sGUID) Then + If Not IsNothing(SelMachining) AndAlso SelMachining.sGUID = Guid.Empty AndAlso Not MachiningList.Any(Function(x) x.sGUID = MachiningIndex.Empty.sGUID) Then ' aggiungo lavorazione vuota MachiningList.Insert(0, MachiningIndex.Empty()) End If