Fix exception when brokering HG asset ids

This commit is contained in:
Melanie Thielker
2013-09-08 18:23:06 +02:00
parent b41ae0f98f
commit 528fc5358d

View File

@@ -137,7 +137,13 @@ namespace OpenSim.Services.Connectors
string prefix = id.Substring(0, 2).ToLower();
string host = m_UriMap[prefix];
string host;
// HG URLs will not be valid UUIDS
if (m_UriMap.ContainsKey(prefix))
host = m_UriMap[prefix];
else
host = m_UriMap["00"];
serverUri.Host = host;