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)
{
@ -95,11 +97,12 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
ServiceProviderProxy.Init(ocs, serviceId);
list.Add(ocs);
}
catch(Exception ex)
catch (Exception ex)
{
TaskManager.WriteError(ex);
}
}
}
return list.ToArray();
}