Deleted debug messages. Fixed a null ref exception on the POST handler of GridUserServerPostHandler.cs

This commit is contained in:
Diva Canto
2013-07-02 16:46:35 -07:00
parent 316e8f9239
commit 4d24bf75fd
3 changed files with 7 additions and 9 deletions

View File

@@ -185,10 +185,12 @@ namespace OpenSim.Server.Handlers.GridUser
GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(user);
Dictionary<string, object> result = new Dictionary<string, object>();
result["result"] = guinfo.ToKeyValuePairs();
if (guinfo != null)
result["result"] = guinfo.ToKeyValuePairs();
else
result["result"] = "null";
string xmlString = ServerUtils.BuildXmlResponse(result);
//m_log.DebugFormat("[GRID USER HANDLER]: resp string: {0}", xmlString);
return Util.UTF8NoBomEncoding.GetBytes(xmlString);
}