diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs index 461c385..a7cbc8f 100644 --- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs +++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs | |||
@@ -332,10 +332,13 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement | |||
332 | { | 332 | { |
333 | AddUser(uuid, first, last, url); | 333 | AddUser(uuid, first, last, url); |
334 | 334 | ||
335 | names[0] = m_UserCache[uuid].FirstName; | 335 | if (m_UserCache.ContainsKey(uuid)) |
336 | names[1] = m_UserCache[uuid].LastName; | 336 | { |
337 | names[0] = m_UserCache[uuid].FirstName; | ||
338 | names[1] = m_UserCache[uuid].LastName; | ||
337 | 339 | ||
338 | return true; | 340 | return true; |
341 | } | ||
339 | } | 342 | } |
340 | else | 343 | else |
341 | m_log.DebugFormat("[USER MANAGEMENT MODULE]: Unable to parse UUI {0}", uInfo.UserID); | 344 | m_log.DebugFormat("[USER MANAGEMENT MODULE]: Unable to parse UUI {0}", uInfo.UserID); |