From 0f020a7cd2c670928219a237a2d3b4f55e3b0af5 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Sun, 21 Sep 2008 17:01:58 +0000 Subject: Fix another reason for #2218 --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index ff89ef9..08de087 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -1220,11 +1220,16 @@ namespace OpenSim.Region.Environment.Scenes /// internal void SendPartTerseUpdate(IClientAPI remoteClient, SceneObjectPart part) { - if (m_rootPart.UUID == part.UUID) + SceneObjectPart rootPart = m_rootPart; + + // TODO: that could by caused by some race condition with attachments on sim-crossing + if (rootPart == null) return; + + if (rootPart.UUID == part.UUID) { - if (m_rootPart.IsAttachment) + if (rootPart.IsAttachment) { - part.SendTerseUpdateToClient(remoteClient, m_rootPart.AttachedPos); + part.SendTerseUpdateToClient(remoteClient, rootPart.AttachedPos); } else { -- cgit v1.1