mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
Fix NRE on TP-to-home, if the home-region is unavailable.
This commit is contained in:
@@ -2402,8 +2402,11 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
if (regionInfo == null)
|
||||
{
|
||||
regionInfo = CommsManager.GridService.RequestNeighbourInfo(UserProfile.HomeRegion);
|
||||
UserProfile.HomeRegionID = regionInfo.RegionID;
|
||||
CommsManager.UserService.UpdateUserProfile(UserProfile);
|
||||
if(regionInfo != null) // home region can be away temporarily, too
|
||||
{
|
||||
UserProfile.HomeRegionID = regionInfo.RegionID;
|
||||
CommsManager.UserService.UpdateUserProfile(UserProfile);
|
||||
}
|
||||
}
|
||||
if (regionInfo == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user