aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorlbsa712008-03-14 15:28:34 +0000
committerlbsa712008-03-14 15:28:34 +0000
commit24aedf52c6b903720f588694880e9613b115cc0c (patch)
tree7b49f8104251eff2c5e961b0134ab3c5c655cd56 /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
parentAttempt to fix mantis #741, could not replicate it myself. But the error was... (diff)
downloadopensim-SC_OLD-24aedf52c6b903720f588694880e9613b115cc0c.zip
opensim-SC_OLD-24aedf52c6b903720f588694880e9613b115cc0c.tar.gz
opensim-SC_OLD-24aedf52c6b903720f588694880e9613b115cc0c.tar.bz2
opensim-SC_OLD-24aedf52c6b903720f588694880e9613b115cc0c.tar.xz
* Added null root part guard
* Normalized some UUID handling * Compacted a few Contains/Add into Set
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 47c4567..e295f87 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -123,7 +123,15 @@ namespace OpenSim.Region.Environment.Scenes
123 123
124 public override LLVector3 AbsolutePosition 124 public override LLVector3 AbsolutePosition
125 { 125 {
126 get { return m_rootPart.GroupPosition; } 126 get
127 {
128 if( m_rootPart == null )
129 {
130 throw new NullReferenceException(string.Format("Object {0} has no root part.", m_uuid));
131 }
132
133 return m_rootPart.GroupPosition;
134 }
127 set 135 set
128 { 136 {
129 LLVector3 val = value; 137 LLVector3 val = value;