If GridUserService is asked for a nonexistent user, bail gracefully

avinationmerge
Melanie Thielker 2014-08-23 18:16:11 +02:00
parent 1a7efc2c64
commit d34599b1a5
1 changed files with 3 additions and 0 deletions

View File

@ -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>();
result["result"] = guinfo.ToKeyValuePairs(); result["result"] = guinfo.ToKeyValuePairs();