Small glitch if cannot find device on a link

This commit is contained in:
Peter Wilson 2015-11-20 14:05:53 -06:00
parent afff91667b
commit a893185dbc

View File

@ -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);