Extra check to avoid client crashes on HG home teleports.
parent
19cb2cb395
commit
dd2a82f81c
|
@ -52,6 +52,8 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
|
|||
m_log.Debug("[HGScene]: TeleportClientHome " + client.FirstName + " " + client.LastName);
|
||||
|
||||
CachedUserInfo uinfo = CommsManager.UserProfileCacheService.GetUserDetails(agentId);
|
||||
if (uinfo != null)
|
||||
{
|
||||
UserProfileData UserProfile = uinfo.UserProfile;
|
||||
|
||||
if (UserProfile != null)
|
||||
|
@ -73,6 +75,10 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
|
|||
(uint)(TPFlags.SetLastToTarget | TPFlags.ViaHome));
|
||||
}
|
||||
}
|
||||
else
|
||||
client.SendTeleportFailed("Sorry! I lost your home-region information.");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue