From 11d38607811d1f2dca58bc3d99b4ad698d6b228a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 21 Jun 2017 21:38:12 +0100 Subject: avoid some broken object assets present in osgrid inventories due to past problems, etc --- OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index 5a9a5a0..bac069b 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs @@ -142,6 +142,8 @@ namespace OpenSim.Region.Framework.Scenes { // m_log.DebugFormat( // "[ASSET GATHERER]: Getting assets for object {0}, {1}", sceneObject.Name, sceneObject.UUID); + if(sceneObject.IsDeleted) + return; SceneObjectPart[] parts = sceneObject.Parts; for (int i = 0; i < parts.Length; i++) @@ -489,6 +491,13 @@ namespace OpenSim.Region.Framework.Scenes /// private void RecordSceneObjectAssetUuids(AssetBase sceneObjectAsset) { + if(sceneObjectAsset.Data == null || sceneObjectAsset.Data.Length == 0) + { + m_log.WarnFormat("[UUIDgatherer] Error: object asset '{0}' id: {1} has no data", + sceneObjectAsset.Name,sceneObjectAsset.ID.ToString()); + return; + } + string xml = Utils.BytesToString(sceneObjectAsset.Data); CoalescedSceneObjects coa; -- cgit v1.1