avoid NULL refs
parent
4b73550eee
commit
9c75f8a57e
|
@ -228,6 +228,8 @@ namespace OpenSim.Server.Handlers.GridUser
|
|||
int i = 0;
|
||||
foreach (GridUserInfo pinfo in pinfos)
|
||||
{
|
||||
if(pinfo == null)
|
||||
continue;
|
||||
Dictionary<string, object> rinfoDict = pinfo.ToKeyValuePairs();
|
||||
result["griduser" + i] = rinfoDict;
|
||||
i++;
|
||||
|
|
|
@ -235,6 +235,8 @@ namespace OpenSim.Server.Handlers.UserAccounts
|
|||
int i = 0;
|
||||
foreach (UserAccount acc in accounts)
|
||||
{
|
||||
if(acc == null)
|
||||
continue;
|
||||
Dictionary<string, object> rinfoDict = acc.ToKeyValuePairs();
|
||||
result["account" + i] = rinfoDict;
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue