Fix a crash when pinging 0.0.0.0. Thanks Samuel for noticing that.

This commit is contained in:
Tim Young 2017-06-29 09:59:01 -05:00
parent 0676a56352
commit a2bebb6eb0

View File

@ -113,6 +113,7 @@ namespace EduNetworkBuilder
public IPAddress(string ip) public IPAddress(string ip)
{ {
if (ip == null) ip = NB.ZeroIPString;
myType = IPAddressType.ip; myType = IPAddressType.ip;
_ip = ip.ParseIp(); _ip = ip.ParseIp();
var mySplitVal = ip.Split('/'); var mySplitVal = ip.Split('/');