From 3c99f027b5b4a825cfc69865892caedce2098f9e Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 22 Oct 2008 14:06:07 +0000 Subject: [PATCH] Thank you both Nlin and M.Igarashi for a patch that: Attached patch protects against a NullReferenceException in SceneObjectGroup.stopMoveToTarget (used by LSL function llStopMoveToTarget). Thanks to M. Igarashi. --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index dd7628dcb1..02098b7300 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -1458,7 +1458,10 @@ namespace OpenSim.Region.Environment.Scenes SceneObjectPart rootpart = m_rootPart; if (rootpart != null) { - rootpart.PhysActor.PIDActive = false; + if (rootpart.PhysActor != null) + { + rootpart.PhysActor.PIDActive = false; + } } }