From a893185dbca9ef2f21e5ed1d9fccdf3cae1dcfd0 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 20 Nov 2015 14:05:53 -0600 Subject: [PATCH] Small glitch if cannot find device on a link --- EduNetworkBuilder/NetworkDevice.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/EduNetworkBuilder/NetworkDevice.cs b/EduNetworkBuilder/NetworkDevice.cs index 8702491..b1b043f 100644 --- a/EduNetworkBuilder/NetworkDevice.cs +++ b/EduNetworkBuilder/NetworkDevice.cs @@ -464,6 +464,7 @@ namespace EduNetworkBuilder if(Link != null) { NetworkDevice tmp = myNet.GetDeviceFromID(Link.Src); + if (tmp == null) continue; if (tmp.hostname != hostname) thelist.Add(tmp.hostname); tmp = myNet.GetDeviceFromID(Link.Dst); if (tmp.hostname != hostname) thelist.Add(tmp.hostname);