mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
avoid NULL refs
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user