Sometimes the viewer sends a null string as mapName; this made the client thread throw an exception with unexpected behavior for users (nothing happens). This commit gives it a sane default: it assumes we're looking for a position in the current region.
parent
4251fdf120
commit
f3829c10e0
|
@ -8970,8 +8970,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
string mapName = Util.UTF8.GetString(map.NameData.Name, 0,
|
string mapName = (map.NameData.Name.Length == 0) ? m_scene.RegionInfo.RegionName :
|
||||||
map.NameData.Name.Length - 1);
|
Util.UTF8.GetString(map.NameData.Name, 0, map.NameData.Name.Length - 1);
|
||||||
RequestMapName handlerMapNameRequest = OnMapNameRequest;
|
RequestMapName handlerMapNameRequest = OnMapNameRequest;
|
||||||
if (handlerMapNameRequest != null)
|
if (handlerMapNameRequest != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue