Don't crash when adding a NIC to a PC/server (Justin)
This commit is contained in:
1 parent
fa163b3d21
commit
2ae5781bea
1 file changed
+1
-1
@@ -357,7 +357,7 @@ namespace EduNetworkBuilder
|
|||||||
tnic = ndCLonedItem.AddNic(WhatToAdd[cbQuestions.SelectedIndex]);
|
tnic = ndCLonedItem.AddNic(WhatToAdd[cbQuestions.SelectedIndex]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tnet != null)
|
if(tnet != null && tnic != null)
|
||||||
tnet.RegisterNICAdded(ndCLonedItem.hostname, tnic.NicName());
|
tnet.RegisterNICAdded(ndCLonedItem.hostname, tnic.NicName());
|
||||||
}
|
}
|
||||||
UpdateForm();
|
UpdateForm();
|
||||||
|
|||||||
Reference in new issue
Block a user