diff --git a/EduNetworkBuilder/DeviceConfig.cs b/EduNetworkBuilder/DeviceConfig.cs index 01599b5..75a6d64 100644 --- a/EduNetworkBuilder/DeviceConfig.cs +++ b/EduNetworkBuilder/DeviceConfig.cs @@ -357,7 +357,7 @@ namespace EduNetworkBuilder tnic = ndCLonedItem.AddNic(WhatToAdd[cbQuestions.SelectedIndex]); } } - if(tnet != null) + if(tnet != null && tnic != null) tnet.RegisterNICAdded(ndCLonedItem.hostname, tnic.NicName()); } UpdateForm();