aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Framework
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-18 16:21:59 +0300
committerOren Hurvitz2014-04-20 06:23:38 +0100
commit3f76f721372496011efc9328783f9f446b91a92b (patch)
treef18d8962103e902003a1ce6899b71f652cdad44d /OpenSim/Region/CoreModules/Framework
parentStopped setting the Service URL "GatekeeperURI" on users' accounts. It isn't ... (diff)
downloadopensim-SC_OLD-3f76f721372496011efc9328783f9f446b91a92b.zip
opensim-SC_OLD-3f76f721372496011efc9328783f9f446b91a92b.tar.gz
opensim-SC_OLD-3f76f721372496011efc9328783f9f446b91a92b.tar.bz2
opensim-SC_OLD-3f76f721372496011efc9328783f9f446b91a92b.tar.xz
Better error-handling when storing assets: recognize that 'null' is an error value
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs
index 532bc74..cbf32ad 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGAssetMapper.cs
@@ -143,7 +143,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
143 asset1.Data = asset.Data; 143 asset1.Data = asset.Data;
144 144
145 string id = m_scene.AssetService.Store(asset1); 145 string id = m_scene.AssetService.Store(asset1);
146 if (id == string.Empty) 146 if (String.IsNullOrEmpty(id))
147 { 147 {
148 m_log.DebugFormat("[HG ASSET MAPPER]: Failed to post asset {0} to asset server {1}: the server did not accept the asset", asset.ID, url); 148 m_log.DebugFormat("[HG ASSET MAPPER]: Failed to post asset {0} to asset server {1}: the server did not accept the asset", asset.ID, url);
149 success = false; 149 success = false;