mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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.
This commit is contained in:
@@ -9104,8 +9104,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
string mapName = Util.UTF8.GetString(map.NameData.Name, 0,
|
||||
map.NameData.Name.Length - 1);
|
||||
string mapName = (map.NameData.Name.Length == 0) ? m_scene.RegionInfo.RegionName :
|
||||
Util.UTF8.GetString(map.NameData.Name, 0, map.NameData.Name.Length - 1);
|
||||
RequestMapName handlerMapNameRequest = OnMapNameRequest;
|
||||
if (handlerMapNameRequest != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user