Workaround for SRAS: if Store Asset returns 'null' then assume the asset already exists, and this isn't an error

0.8.0.3
Oren Hurvitz 2014-04-21 15:29:41 +03:00
parent 2c9859314f
commit 617bc4710a
1 changed files with 7 additions and 0 deletions

View File

@ -299,6 +299,13 @@ namespace OpenSim.Services.Connectors
return string.Empty;
}
// TEMPORARY: SRAS returns 'null' when it's asked to store existing assets
if (newID == null)
{
m_log.DebugFormat("[ASSET CONNECTOR]: Storing of asset {0} returned null; assuming the asset already exists", asset.ID);
return asset.ID;
}
if (string.IsNullOrEmpty(newID))
return string.Empty;