mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Workaround for SRAS: if Store Asset returns 'null' then assume the asset already exists, and this isn't an error
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user