Fix region crossing for unscripted prims, avoid costly SEH

GenericGridServerConcept
Melanie Thielker 2009-02-19 01:14:26 +00:00
parent 53fc65c907
commit b51a0e9960
1 changed files with 3 additions and 1 deletions

View File

@ -437,13 +437,15 @@ namespace OpenSim.Region.Framework.Scenes
public void SetState(string objXMLData, UUID RegionID) public void SetState(string objXMLData, UUID RegionID)
{ {
if (objXMLData == String.Empty)
return;
XmlDocument doc = new XmlDocument(); XmlDocument doc = new XmlDocument();
try try
{ {
doc.LoadXml(objXMLData); doc.LoadXml(objXMLData);
} }
catch (System.Xml.XmlException) catch (Exception) // (System.Xml.XmlException)
{ {
// We will get here if the XML is invalid or in unit // We will get here if the XML is invalid or in unit
// tests. Really should determine which it is and either // tests. Really should determine which it is and either