don't try to rez a object from a asset with empty data and Let user know about it

LSLKeyTest
UbitUmarov 2016-07-22 16:41:41 +01:00
parent 2cffa71be2
commit 504ee6e21c
1 changed files with 9 additions and 0 deletions

View File

@ -867,6 +867,15 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
return null; return null;
} }
if(rezAsset.Data == null || rezAsset.Data.Length == 0)
{
m_log.WarnFormat(
"[INVENTORY ACCESS MODULE]: missing data in asset {0} to RezObject()",
assetID, remoteClient.Name);
remoteClient.SendAgentAlertMessage(string.Format("Unable to rez: missing data in asset {0} ", assetID), false);
return null;
}
SceneObjectGroup group = null; SceneObjectGroup group = null;
List<SceneObjectGroup> objlist; List<SceneObjectGroup> objlist;