Thank you kindly, Melanie for a patch that adds a two-stage

check. It seems there may be a race. For me, this patch, 
just as it is here, fixes it.
0.6.0-stable
Charles Krinke 2008-05-28 02:00:43 +00:00
parent fb1c7e62d2
commit 5f2b8fd5e1
1 changed files with 7 additions and 1 deletions

View File

@ -1403,7 +1403,13 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="remoteAvatar"></param>
public void SendFullUpdateToOtherClient(ScenePresence remoteAvatar)
{
if (remoteAvatar == null || remoteAvatar.ControllingClient == null)
// 2 stage check is needed.
if (remoteAvatar == null)
return;
IClientAPI cl=remoteAvatar.ControllingClient;
if(cl == null)
return;
if(m_appearance.Texture == null)
return;
remoteAvatar.m_controllingClient.SendAvatarData(m_regionInfo.RegionHandle, m_firstname, m_lastname, m_uuid,