From 18bcf2f5445fa4ead0b38a64ac18bac64103d973 Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 19 May 2019 22:55:26 +1000 Subject: Better archiver console spam. --- OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index 80d3f62..d0b0e12 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs @@ -571,18 +571,23 @@ namespace OpenSim.Region.Framework.Scenes { string xml = Utils.BytesToString(sceneObjectAsset.Data); - CoalescedSceneObjects coa; - if (CoalescedSceneObjectsSerializer.TryFromXml(xml, out coa)) - { - foreach (SceneObjectGroup sog in coa.Objects) - AddForInspection(sog); - } + if (String.IsNullOrEmpty(xml)) + m_log.ErrorFormat("[UUIDGatherer]: Asset {0} - {1} has a zero length XML blob!", sceneObjectAsset.Name, sceneObjectAsset.ID); else { - SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml); + CoalescedSceneObjects coa; + if (CoalescedSceneObjectsSerializer.TryFromXml(xml, out coa)) + { + foreach (SceneObjectGroup sog in coa.Objects) + AddForInspection(sog); + } + else + { + SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml); - if (null != sog) - AddForInspection(sog); + if (null != sog) + AddForInspection(sog); + } } } -- cgit v1.1