mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Guard against the null UUID being queried from the userserver
repeatedly.
This commit is contained in:
@@ -65,6 +65,8 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
/// <param name="userID"></param>
|
||||
public void AddNewUser(LLUUID userID)
|
||||
{
|
||||
if(userID == LLUUID.Zero)
|
||||
return;
|
||||
m_log.DebugFormat("[USER CACHE]: Adding user profile for {0}", userID);
|
||||
GetUserDetails(userID);
|
||||
}
|
||||
@@ -130,6 +132,9 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
/// <returns>null if no user details are found</returns>
|
||||
public CachedUserInfo GetUserDetails(LLUUID userID)
|
||||
{
|
||||
if(userID == LLUUID.Zero)
|
||||
return null;
|
||||
|
||||
lock (m_userProfiles)
|
||||
{
|
||||
if (m_userProfiles.ContainsKey(userID))
|
||||
|
||||
Reference in New Issue
Block a user