From 3c99f027b5b4a825cfc69865892caedce2098f9e Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 22 Oct 2008 14:06:07 +0000 Subject: 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(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index dd7628d..02098b7 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; + } } } -- cgit v1.1