If GridUserService is asked for a nonexistent user, bail gracefully
parent
cbd7c7b9ec
commit
5f51abada9
|
@ -184,6 +184,9 @@ namespace OpenSim.Server.Handlers.GridUser
|
||||||
|
|
||||||
GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(user);
|
GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(user);
|
||||||
|
|
||||||
|
if (guinfo == null)
|
||||||
|
return FailureResult();
|
||||||
|
|
||||||
Dictionary<string, object> result = new Dictionary<string, object>();
|
Dictionary<string, object> result = new Dictionary<string, object>();
|
||||||
if (guinfo != null)
|
if (guinfo != null)
|
||||||
result["result"] = guinfo.ToKeyValuePairs();
|
result["result"] = guinfo.ToKeyValuePairs();
|
||||||
|
|
Loading…
Reference in New Issue