Guard against completely unknown user UUIDs.

cpu-performance
Diva Canto 2013-07-04 14:07:25 -07:00
parent da3aa44138
commit d80936bbbb
1 changed files with 6 additions and 3 deletions

View File

@ -332,11 +332,14 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
{ {
AddUser(uuid, first, last, url); AddUser(uuid, first, last, url);
if (m_UserCache.ContainsKey(uuid))
{
names[0] = m_UserCache[uuid].FirstName; names[0] = m_UserCache[uuid].FirstName;
names[1] = m_UserCache[uuid].LastName; names[1] = m_UserCache[uuid].LastName;
return true; return true;
} }
}
else else
m_log.DebugFormat("[USER MANAGEMENT MODULE]: Unable to parse UUI {0}", uInfo.UserID); m_log.DebugFormat("[USER MANAGEMENT MODULE]: Unable to parse UUI {0}", uInfo.UserID);
} }