From 504ee6e21ca84b7af9a44b6715fb4e65126f3985 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 22 Jul 2016 16:41:41 +0100 Subject: don't try to rez a object from a asset with empty data and Let user know about it --- .../Framework/InventoryAccess/InventoryAccessModule.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index 781b9ff..8c560e5 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs @@ -867,6 +867,15 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess 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; List objlist; -- cgit v1.1