mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
avoid a null ref
This commit is contained in:
@@ -294,6 +294,8 @@ namespace OpenSim.Services.UserAccountService
|
||||
public List<UserAccount> GetUserAccounts(UUID scopeID, List<string> 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)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user