avoid a null ref
parent
26b5affb04
commit
f2cf3b201b
|
@ -294,6 +294,8 @@ namespace OpenSim.Services.UserAccountService
|
||||||
public List<UserAccount> GetUserAccounts(UUID scopeID, List<string> IDs)
|
public List<UserAccount> GetUserAccounts(UUID scopeID, List<string> IDs)
|
||||||
{
|
{
|
||||||
UserAccountData[] ret = m_Database.GetUsersWhere(scopeID, "PrincipalID in ('" + String.Join("', '", IDs) + "')");
|
UserAccountData[] ret = m_Database.GetUsersWhere(scopeID, "PrincipalID in ('" + String.Join("', '", IDs) + "')");
|
||||||
|
if(ret == null || ret.Length == 0)
|
||||||
|
return new List<UserAccount>();
|
||||||
return new List<UserAccount>(ret.Select((x) => MakeUserAccount(x)));
|
return new List<UserAccount>(ret.Select((x) => MakeUserAccount(x)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue