aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
index 39ebb1c..b6cc73a 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
@@ -439,7 +439,20 @@ namespace OpenSim.Region.Framework.Scenes
439 { 439 {
440 440
441 XmlDocument doc = new XmlDocument(); 441 XmlDocument doc = new XmlDocument();
442 doc.LoadXml(objXMLData); 442 try
443 {
444 doc.LoadXml(objXMLData);
445 }
446 catch (System.Xml.XmlException)
447 {
448 // We will get here if the XML is invalid or in unit
449 // tests. Really should determine which it is and either
450 // fail silently or log it
451 // Fail silently, for now.
452 // TODO: Fix this
453 //
454 return;
455 }
443 456
444 XmlNodeList rootL = doc.GetElementsByTagName("ScriptData"); 457 XmlNodeList rootL = doc.GetElementsByTagName("ScriptData");
445 if (rootL.Count == 1) 458 if (rootL.Count == 1)