aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 1204cd4..2c3e767 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -239,7 +239,14 @@ namespace OpenSim.Region.Environment.Scenes
239 239
240 public override UUID UUID 240 public override UUID UUID
241 { 241 {
242 get { return m_rootPart.UUID; } 242 get {
243 if (m_rootPart == null)
244 {
245 m_log.Error("Got a null rootpart while requesting UUID. Called from: ", new Exception());
246 return UUID.Zero;
247 }
248 else return m_rootPart.UUID;
249 }
243 set { m_rootPart.UUID = value; } 250 set { m_rootPart.UUID = value; }
244 } 251 }
245 252