Protect against null requests
parent
ac73e70293
commit
fbb01bd280
|
@ -140,11 +140,13 @@ namespace OpenSim.Region.CoreModules.Framework
|
|||
Watchdog.UpdateThread();
|
||||
|
||||
GridRegionRequest request = m_RequestQueue.Dequeue();
|
||||
if (request != null)
|
||||
{
|
||||
GridRegion r = m_scenes[0].GridService.GetRegionByUUID(UUID.Zero, request.regionID);
|
||||
|
||||
if (r != null && r.RegionHandle != 0)
|
||||
request.client.SendRegionHandle(request.regionID, r.RegionHandle);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -681,6 +681,8 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
|||
Watchdog.UpdateThread();
|
||||
|
||||
NameRequest request = m_RequestQueue.Dequeue();
|
||||
if (request != null)
|
||||
{
|
||||
string[] names;
|
||||
bool foundRealName = TryGetUserNames(request.uuid, out names);
|
||||
|
||||
|
@ -691,7 +693,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
|||
|
||||
request.client.SendNameReply(request.uuid, names[0], names[1]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue