From e5a7ba5df4098aa0e7c24487736b07d7ede0d7e6 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 16 Aug 2008 03:18:21 +0000 Subject: Guard against the null UUID being queried from the userserver repeatedly. --- OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs') diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 2bc8dcd..f96b15e 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs @@ -65,6 +65,8 @@ namespace OpenSim.Framework.Communications.Cache /// 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 /// null if no user details are found public CachedUserInfo GetUserDetails(LLUUID userID) { + if(userID == LLUUID.Zero) + return null; + lock (m_userProfiles) { if (m_userProfiles.ContainsKey(userID)) -- cgit v1.1