When searching for users, don't add users from the local cache if they have an invalid UUID

Resolves http://opensimulator.org/mantis/view.php?id=6935
0.8.0.3
Oren Hurvitz 2013-10-30 12:46:42 +02:00
parent a2dd8f31de
commit c8583e566d
1 changed files with 3 additions and 2 deletions

View File

@ -278,7 +278,8 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
{
foreach (UserData data in m_UserCache.Values)
{
if (users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null &&
if (data.Id != UUID.Zero &&
users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null &&
(data.FirstName.ToLower().StartsWith(query.ToLower()) || data.LastName.ToLower().StartsWith(query.ToLower())))
users.Add(data);
}