From d80936bbbb85280623478f3a25d59a4a4da9c3e6 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 4 Jul 2013 14:07:25 -0700 Subject: Guard against completely unknown user UUIDs. --- .../CoreModules/Framework/UserManagement/UserManagementModule.cs | 9 ++++++--- 1 file 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 { AddUser(uuid, first, last, url); - names[0] = m_UserCache[uuid].FirstName; - names[1] = m_UserCache[uuid].LastName; + if (m_UserCache.ContainsKey(uuid)) + { + names[0] = m_UserCache[uuid].FirstName; + names[1] = m_UserCache[uuid].LastName; - return true; + return true; + } } else m_log.DebugFormat("[USER MANAGEMENT MODULE]: Unable to parse UUI {0}", uInfo.UserID); -- cgit v1.1