Fix a null reference issue in cmGetAvatarList()

avinationmerge
Tom Grimshaw 2010-05-19 00:20:51 -07:00
parent bb0806c61e
commit ba36c62caa
1 changed files with 1 additions and 1 deletions

View File

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