From ef43111fc136dab67476c3fc8c709bbbb522a34d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 21 Jan 2019 06:41:01 +0000 Subject: [PATCH] another missing file --- .../Scenes/Serialization/SceneObjectSerializer.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index a664d0c519..de880e3b5c 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs @@ -989,7 +989,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization private static void ProcessDynAttrs(SceneObjectPart obj, XmlReader reader) { - obj.DynAttrs.ReadXml(reader); + DAMap waste = new DAMap(); + waste.ReadXml(reader); + if(waste.CountNamespaces > 0) + obj.DynAttrs = waste; + else + obj.DynAttrs = null; } private static void ProcessTextureAnimation(SceneObjectPart obj, XmlReader reader) @@ -1559,7 +1564,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization writer.WriteElementString("MediaUrl", sop.MediaUrl.ToString()); WriteVector(writer, "AttachedPos", sop.AttachedPos); - if (sop.DynAttrs.CountNamespaces > 0) + if (sop.DynAttrs != null && sop.DynAttrs.CountNamespaces > 0) { writer.WriteStartElement("DynAttrs"); sop.DynAttrs.WriteXml(writer);