From f2cf3b201b4a967eae556d46202262b00344d84e Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 2 Nov 2019 21:53:12 +0000 Subject: avoid a null ref --- OpenSim/Services/UserAccountService/UserAccountService.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Services/UserAccountService/UserAccountService.cs') diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index aada0be8..4f0698f 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))); } -- cgit v1.1