Fix a null reference issue in cmGetAvatarList()

avinationmerge
Tom Grimshaw 2010-05-19 00:24:54 -07:00
parent 6bc7e3429f
commit fc76b5f589
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
LSL_List result = new LSL_List(); LSL_List result = new LSL_List();
foreach (ScenePresence avatar in World.GetAvatars()) foreach (ScenePresence avatar in World.GetAvatars())
{ {
if (avatar.UUID != m_host.OwnerID) if (avatar != null && avatar.UUID != m_host.OwnerID)
{ {
if (avatar.IsChildAgent == false) if (avatar.IsChildAgent == false)
{ {