Fix nullref in cmGetAvatarList() (ported from 0.69)

avinationmerge
Tom Grimshaw 2010-06-01 13:29:12 -07:00
parent 6668c789d3
commit 90c814a7ca
1 changed files with 6 additions and 3 deletions

View File

@ -125,9 +125,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
if (avatar.IsChildAgent == false)
{
result.Add(avatar.UUID);
result.Add(avatar.PhysicsActor.Position);
result.Add(avatar.Name);
if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null)
{
result.Add(avatar.UUID);
result.Add(avatar.PhysicsActor.Position);
result.Add(avatar.Name);
}
}
}
});