Avoid a scary warning message about null replies from the user agent service.

bulletsim
Diva Canto 2011-05-27 08:53:26 -07:00
parent d60f525baa
commit 4087a453dc
1 changed files with 4 additions and 0 deletions

View File

@ -354,6 +354,8 @@ namespace OpenSim.Server.Handlers.Hypergrid
string url = m_HomeUsersService.LocateUser(userID);
if (url != string.Empty)
hash["URL"] = url;
else
hash["result"] = "Unable to locate user";
}
}
@ -389,6 +391,8 @@ namespace OpenSim.Server.Handlers.Hypergrid
string uui = m_HomeUsersService.GetUUI(userID, targetUserID);
if (uui != string.Empty)
hash["UUI"] = uui;
else
hash["result"] = "User unknown";
}
XmlRpcResponse response = new XmlRpcResponse();