Better error-handling when storing assets: recognize that 'null' is an error value

This commit is contained in:
Oren Hurvitz
2014-04-18 16:21:59 +03:00
parent 52f8669169
commit 3f76f72137
4 changed files with 21 additions and 25 deletions

View File

@@ -143,7 +143,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
asset1.Data = asset.Data;
string id = m_scene.AssetService.Store(asset1);
if (id == string.Empty)
if (String.IsNullOrEmpty(id))
{
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);
success = false;