Fix exception when brokering HG asset ids

avinationmerge
Melanie Thielker 2013-09-08 18:23:06 +02:00
parent b41ae0f98f
commit 528fc5358d
1 changed files with 7 additions and 1 deletions

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;