aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server
diff options
context:
space:
mode:
authorMelanie Thielker2014-08-23 18:16:11 +0200
committerMelanie Thielker2014-08-23 18:17:33 +0200
commit5f51abada98a0edfbfb6823abb0364f0620d0f97 (patch)
tree047bd8c4a383342c2f14e2afaa1b40e4ecccbbe9 /OpenSim/Server
parentChange the map tile system to be multi-grid hosting compatible (diff)
downloadopensim-SC_OLD-5f51abada98a0edfbfb6823abb0364f0620d0f97.zip
opensim-SC_OLD-5f51abada98a0edfbfb6823abb0364f0620d0f97.tar.gz
opensim-SC_OLD-5f51abada98a0edfbfb6823abb0364f0620d0f97.tar.bz2
opensim-SC_OLD-5f51abada98a0edfbfb6823abb0364f0620d0f97.tar.xz
If GridUserService is asked for a nonexistent user, bail gracefully
Diffstat (limited to 'OpenSim/Server')
-rw-r--r--OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs
index 0b98e9a..9199c68 100644
--- a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs
+++ b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs
@@ -184,6 +184,9 @@ namespace OpenSim.Server.Handlers.GridUser
184 184
185 GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(user); 185 GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(user);
186 186
187 if (guinfo == null)
188 return FailureResult();
189
187 Dictionary<string, object> result = new Dictionary<string, object>(); 190 Dictionary<string, object> result = new Dictionary<string, object>();
188 if (guinfo != null) 191 if (guinfo != null)
189 result["result"] = guinfo.ToKeyValuePairs(); 192 result["result"] = guinfo.ToKeyValuePairs();