diff options
Diffstat (limited to 'OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs')
-rw-r--r-- | OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs index cad93a1..9199c68 100644 --- a/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs +++ b/OpenSim/Server/Handlers/GridUser/GridUserServerPostHandler.cs | |||
@@ -56,7 +56,7 @@ namespace OpenSim.Server.Handlers.GridUser | |||
56 | m_GridUserService = service; | 56 | m_GridUserService = service; |
57 | } | 57 | } |
58 | 58 | ||
59 | public override byte[] Handle(string path, Stream requestData, | 59 | protected override byte[] ProcessRequest(string path, Stream requestData, |
60 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) | 60 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) |
61 | { | 61 | { |
62 | StreamReader sr = new StreamReader(requestData); | 62 | StreamReader sr = new StreamReader(requestData); |
@@ -188,10 +188,12 @@ namespace OpenSim.Server.Handlers.GridUser | |||
188 | return FailureResult(); | 188 | return FailureResult(); |
189 | 189 | ||
190 | Dictionary<string, object> result = new Dictionary<string, object>(); | 190 | Dictionary<string, object> result = new Dictionary<string, object>(); |
191 | result["result"] = guinfo.ToKeyValuePairs(); | 191 | if (guinfo != null) |
192 | result["result"] = guinfo.ToKeyValuePairs(); | ||
193 | else | ||
194 | result["result"] = "null"; | ||
192 | 195 | ||
193 | string xmlString = ServerUtils.BuildXmlResponse(result); | 196 | string xmlString = ServerUtils.BuildXmlResponse(result); |
194 | |||
195 | //m_log.DebugFormat("[GRID USER HANDLER]: resp string: {0}", xmlString); | 197 | //m_log.DebugFormat("[GRID USER HANDLER]: resp string: {0}", xmlString); |
196 | return Util.UTF8NoBomEncoding.GetBytes(xmlString); | 198 | return Util.UTF8NoBomEncoding.GetBytes(xmlString); |
197 | } | 199 | } |