diff options
author | Melanie Thielker | 2013-09-08 18:23:06 +0200 |
---|---|---|
committer | Melanie Thielker | 2013-09-08 18:23:06 +0200 |
commit | 528fc5358df93ae7a6f9e32f696550d21ef3d08c (patch) | |
tree | 45a4ed694c18dade1db20168ce5070bb5511259f | |
parent | Harmonize the class name, ID and Name of the default perms module (diff) | |
download | opensim-SC-528fc5358df93ae7a6f9e32f696550d21ef3d08c.zip opensim-SC-528fc5358df93ae7a6f9e32f696550d21ef3d08c.tar.gz opensim-SC-528fc5358df93ae7a6f9e32f696550d21ef3d08c.tar.bz2 opensim-SC-528fc5358df93ae7a6f9e32f696550d21ef3d08c.tar.xz |
Fix exception when brokering HG asset ids
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs index 4b502b7..8b702e0 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | |||
@@ -137,7 +137,13 @@ namespace OpenSim.Services.Connectors | |||
137 | 137 | ||
138 | string prefix = id.Substring(0, 2).ToLower(); | 138 | string prefix = id.Substring(0, 2).ToLower(); |
139 | 139 | ||
140 | string host = m_UriMap[prefix]; | 140 | string host; |
141 | |||
142 | // HG URLs will not be valid UUIDS | ||
143 | if (m_UriMap.ContainsKey(prefix)) | ||
144 | host = m_UriMap[prefix]; | ||
145 | else | ||
146 | host = m_UriMap["00"]; | ||
141 | 147 | ||
142 | serverUri.Host = host; | 148 | serverUri.Host = host; |
143 | 149 | ||