Fix a null reference issue in cmGetAvatarList()
parent
6bc7e3429f
commit
fc76b5f589
|
@ -94,7 +94,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
LSL_List result = new LSL_List();
|
||||
foreach (ScenePresence avatar in World.GetAvatars())
|
||||
{
|
||||
if (avatar.UUID != m_host.OwnerID)
|
||||
if (avatar != null && avatar.UUID != m_host.OwnerID)
|
||||
{
|
||||
if (avatar.IsChildAgent == false)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue