diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/UuidGatherer.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index d0c48b7..88a93b5 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs | |||
@@ -573,18 +573,23 @@ namespace OpenSim.Region.Framework.Scenes | |||
573 | { | 573 | { |
574 | string xml = Utils.BytesToString(sceneObjectAsset.Data); | 574 | string xml = Utils.BytesToString(sceneObjectAsset.Data); |
575 | 575 | ||
576 | CoalescedSceneObjects coa; | 576 | if (String.IsNullOrEmpty(xml)) |
577 | if (CoalescedSceneObjectsSerializer.TryFromXml(xml, out coa)) | 577 | m_log.ErrorFormat("[UUIDGatherer]: Asset {0} - {1} has a zero length XML blob!", sceneObjectAsset.Name, sceneObjectAsset.ID); |
578 | { | ||
579 | foreach (SceneObjectGroup sog in coa.Objects) | ||
580 | AddForInspection(sog); | ||
581 | } | ||
582 | else | 578 | else |
583 | { | 579 | { |
584 | SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml); | 580 | CoalescedSceneObjects coa; |
581 | if (CoalescedSceneObjectsSerializer.TryFromXml(xml, out coa)) | ||
582 | { | ||
583 | foreach (SceneObjectGroup sog in coa.Objects) | ||
584 | AddForInspection(sog); | ||
585 | } | ||
586 | else | ||
587 | { | ||
588 | SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml); | ||
585 | 589 | ||
586 | if (null != sog) | 590 | if (null != sog) |
587 | AddForInspection(sog); | 591 | AddForInspection(sog); |
592 | } | ||
588 | } | 593 | } |
589 | } | 594 | } |
590 | 595 | ||