mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
* minor: Stop presence child status suffering an NRE if the agent uuid given is not represent at all
This commit is contained in:
@@ -4130,15 +4130,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
return m_sceneGraph.GetScenePresence(avatarID);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Request an Avatar's Child Status - used by ClientView when a 'kick everyone' or 'estate message' occurs
|
||||
/// </summary>
|
||||
/// <param name="avatarID">AvatarID to lookup</param>
|
||||
/// <returns></returns>
|
||||
public override bool PresenceChildStatus(UUID avatarID)
|
||||
{
|
||||
ScenePresence cp = GetScenePresence(avatarID);
|
||||
return cp.IsChildAgent;
|
||||
|
||||
if (cp != null)
|
||||
return cp.IsChildAgent;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user