aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorCharles Krinke2008-10-22 14:06:07 +0000
committerCharles Krinke2008-10-22 14:06:07 +0000
commit3c99f027b5b4a825cfc69865892caedce2098f9e (patch)
tree3876a67efd8a95d2ba48de95ffd842f80524b37f /OpenSim/Region
parentAnd fix it (diff)
downloadopensim-SC-3c99f027b5b4a825cfc69865892caedce2098f9e.zip
opensim-SC-3c99f027b5b4a825cfc69865892caedce2098f9e.tar.gz
opensim-SC-3c99f027b5b4a825cfc69865892caedce2098f9e.tar.bz2
opensim-SC-3c99f027b5b4a825cfc69865892caedce2098f9e.tar.xz
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.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs5
1 files changed, 4 insertions, 1 deletions
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
1458 SceneObjectPart rootpart = m_rootPart; 1458 SceneObjectPart rootpart = m_rootPart;
1459 if (rootpart != null) 1459 if (rootpart != null)
1460 { 1460 {
1461 rootpart.PhysActor.PIDActive = false; 1461 if (rootpart.PhysActor != null)
1462 {
1463 rootpart.PhysActor.PIDActive = false;
1464 }
1462 } 1465 }
1463 } 1466 }
1464 1467