aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorTom Grimshaw2010-06-01 13:29:12 -0700
committerTom Grimshaw2010-06-01 13:29:12 -0700
commit90c814a7cace3bac3df451a8b184c32f462c4da2 (patch)
tree022e1fa70bc592794bef00fb8f000e15674eb4be /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentOne should not lock null objects. (diff)
downloadopensim-SC-90c814a7cace3bac3df451a8b184c32f462c4da2.zip
opensim-SC-90c814a7cace3bac3df451a8b184c32f462c4da2.tar.gz
opensim-SC-90c814a7cace3bac3df451a8b184c32f462c4da2.tar.bz2
opensim-SC-90c814a7cace3bac3df451a8b184c32f462c4da2.tar.xz
Fix nullref in cmGetAvatarList() (ported from 0.69)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs
index 3e62c1a..4fb5c95 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs
@@ -125,9 +125,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
125 { 125 {
126 if (avatar.IsChildAgent == false) 126 if (avatar.IsChildAgent == false)
127 { 127 {
128 result.Add(avatar.UUID); 128 if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null)
129 result.Add(avatar.PhysicsActor.Position); 129 {
130 result.Add(avatar.Name); 130 result.Add(avatar.UUID);
131 result.Add(avatar.PhysicsActor.Position);
132 result.Add(avatar.Name);
133 }
131 } 134 }
132 } 135 }
133 }); 136 });