diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index aada0be8e6..4f0698fc8a 100755 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs @@ -294,6 +294,8 @@ namespace OpenSim.Services.UserAccountService public List GetUserAccounts(UUID scopeID, List IDs) { UserAccountData[] ret = m_Database.GetUsersWhere(scopeID, "PrincipalID in ('" + String.Join("', '", IDs) + "')"); + if(ret == null || ret.Length == 0) + return new List(); return new List(ret.Select((x) => MakeUserAccount(x))); }