diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCache.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/UserProfileCache.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCache.cs b/OpenSim/Framework/Communications/Cache/UserProfileCache.cs index 74b2440..117ed36 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCache.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCache.cs | |||
@@ -74,7 +74,10 @@ namespace OpenSim.Framework.Communications.Cache | |||
74 | 74 | ||
75 | public CachedUserInfo GetUserDetails(LLUUID userID) | 75 | public CachedUserInfo GetUserDetails(LLUUID userID) |
76 | { | 76 | { |
77 | return m_userProfiles[userID]; | 77 | if (m_userProfiles.ContainsKey(userID)) |
78 | return m_userProfiles[userID]; | ||
79 | else | ||
80 | return null; | ||
78 | } | 81 | } |
79 | 82 | ||
80 | public void HandleCreateInventoryFolder(IClientAPI remoteClient, LLUUID folderID, ushort folderType, | 83 | public void HandleCreateInventoryFolder(IClientAPI remoteClient, LLUUID folderID, ushort folderType, |