If GridUserService is asked for a nonexistent user, bail gracefully

avinationmerge
Melanie Thielker 2014-08-23 18:16:11 +02:00
parent cbd7c7b9ec
commit 5f51abada9
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>();
if (guinfo != null) if (guinfo != null)
result["result"] = guinfo.ToKeyValuePairs(); result["result"] = guinfo.ToKeyValuePairs();