diff options
author | Diva Canto | 2010-08-26 12:26:09 -0700 |
---|---|---|
committer | Diva Canto | 2010-08-26 12:26:09 -0700 |
commit | 26fd673e20f56cd8f7b611d4767ad8c9d65b02f6 (patch) | |
tree | 3ca9a7342b93caca04c41a6906b8a17a05792993 /OpenSim/Region/DataSnapshot/ObjectSnapshot.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-26fd673e20f56cd8f7b611d4767ad8c9d65b02f6.zip opensim-SC-26fd673e20f56cd8f7b611d4767ad8c9d65b02f6.tar.gz opensim-SC-26fd673e20f56cd8f7b611d4767ad8c9d65b02f6.tar.bz2 opensim-SC-26fd673e20f56cd8f7b611d4767ad8c9d65b02f6.tar.xz |
Addresses mantis #4984 -- Datasnapshot exceptions.
Diffstat (limited to 'OpenSim/Region/DataSnapshot/ObjectSnapshot.cs')
-rw-r--r-- | OpenSim/Region/DataSnapshot/ObjectSnapshot.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs b/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs index c489972..3c39f9e 100644 --- a/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs | |||
@@ -142,9 +142,18 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
142 | node.InnerText = m_scene.RegionInfo.RegionSettings.RegionUUID.ToString(); | 142 | node.InnerText = m_scene.RegionInfo.RegionSettings.RegionUUID.ToString(); |
143 | xmlobject.AppendChild(node); | 143 | xmlobject.AppendChild(node); |
144 | 144 | ||
145 | node = nodeFactory.CreateNode(XmlNodeType.Element, "parceluuid", ""); | 145 | if (land != null && land.LandData != null) |
146 | node.InnerText = land.LandData.GlobalID.ToString(); | 146 | { |
147 | xmlobject.AppendChild(node); | 147 | node = nodeFactory.CreateNode(XmlNodeType.Element, "parceluuid", ""); |
148 | node.InnerText = land.LandData.GlobalID.ToString(); | ||
149 | xmlobject.AppendChild(node); | ||
150 | } | ||
151 | else | ||
152 | { | ||
153 | // Something is wrong with this object. Let's not list it. | ||
154 | m_log.WarnFormat("[DATASNAPSHOT]: Bad data for object {0} ({1}) in region {2}", obj.Name, obj.UUID, m_scene.RegionInfo.RegionName); | ||
155 | continue; | ||
156 | } | ||
148 | 157 | ||
149 | node = nodeFactory.CreateNode(XmlNodeType.Element, "location", ""); | 158 | node = nodeFactory.CreateNode(XmlNodeType.Element, "location", ""); |
150 | Vector3 loc = obj.AbsolutePosition; | 159 | Vector3 loc = obj.AbsolutePosition; |