diff options
author | lbsa71 | 2008-03-14 15:28:34 +0000 |
---|---|---|
committer | lbsa71 | 2008-03-14 15:28:34 +0000 |
commit | 24aedf52c6b903720f588694880e9613b115cc0c (patch) | |
tree | 7b49f8104251eff2c5e961b0134ab3c5c655cd56 /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |
parent | Attempt to fix mantis #741, could not replicate it myself. But the error was... (diff) | |
download | opensim-SC-24aedf52c6b903720f588694880e9613b115cc0c.zip opensim-SC-24aedf52c6b903720f588694880e9613b115cc0c.tar.gz opensim-SC-24aedf52c6b903720f588694880e9613b115cc0c.tar.bz2 opensim-SC-24aedf52c6b903720f588694880e9613b115cc0c.tar.xz |
* Added null root part guard
* Normalized some UUID handling
* Compacted a few Contains/Add into Set
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 10 |
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; |