Fixed wsp-10061 Getting error when deleting an accepted domain

Occurs when OCS is enabled and no edge servers are defined
This commit is contained in:
robvde 2012-11-23 13:24:22 +04:00
parent ca22d3927b
commit a146b6ebd5

View file

@ -84,6 +84,8 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
private static OCSEdgeServer[] GetEdgeServers(string edgeServices)
{
List<OCSEdgeServer> list = new List<OCSEdgeServer>();
if (!string.IsNullOrEmpty(edgeServices))
{
string[] services = edgeServices.Split(';');
foreach (string current in services)
{
@ -100,6 +102,7 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
TaskManager.WriteError(ex);
}
}
}
return list.ToArray();
}