aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Capabilities/LLSDHelpers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Capabilities/LLSDHelpers.cs')
-rw-r--r--OpenSim/Region/Capabilities/LLSDHelpers.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/Capabilities/LLSDHelpers.cs b/OpenSim/Region/Capabilities/LLSDHelpers.cs
index 80916b4..76d9345 100644
--- a/OpenSim/Region/Capabilities/LLSDHelpers.cs
+++ b/OpenSim/Region/Capabilities/LLSDHelpers.cs
@@ -73,7 +73,6 @@ namespace OpenSim.Region.Capabilities
73 } 73 }
74 else 74 else
75 { 75 {
76 //Console.WriteLine("LLSD field name" + fields[i].Name + " , " + fields[i].GetValue(obj).GetType());
77 writer.WriteStartElement(String.Empty, "key", String.Empty); 76 writer.WriteStartElement(String.Empty, "key", String.Empty);
78 writer.WriteString(fields[i].Name); 77 writer.WriteString(fields[i].Name);
79 writer.WriteEndElement(); 78 writer.WriteEndElement();
@@ -86,12 +85,15 @@ namespace OpenSim.Region.Capabilities
86 // LLSDArray arrayObject = obj as LLSDArray; 85 // LLSDArray arrayObject = obj as LLSDArray;
87 // ArrayList a = arrayObject.Array; 86 // ArrayList a = arrayObject.Array;
88 ArrayList a = (ArrayList)obj.GetType().GetField("Array").GetValue(obj); 87 ArrayList a = (ArrayList)obj.GetType().GetField("Array").GetValue(obj);
89 writer.WriteStartElement(String.Empty, "array", String.Empty); 88 if (a != null)
90 foreach (object item in a)
91 { 89 {
92 SerializeLLSDType(writer, item); 90 writer.WriteStartElement(String.Empty, "array", String.Empty);
91 foreach (object item in a)
92 {
93 SerializeLLSDType(writer, item);
94 }
95 writer.WriteEndElement();
93 } 96 }
94 writer.WriteEndElement();
95 break; 97 break;
96 } 98 }
97 } 99 }