Add a null check. Mantis #2798

0.6.1-post-fixes
idb 2008-12-11 20:20:21 +00:00
parent 51427bae9f
commit 31bccdffd9
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ namespace OpenSim.Region.Communications.OGS1
XmlRpcResponse resp = req.Send(m_commsManager.NetworkServersInfo.UserURL, 8000); XmlRpcResponse resp = req.Send(m_commsManager.NetworkServersInfo.UserURL, 8000);
Hashtable respData = (Hashtable) resp.Value; Hashtable respData = (Hashtable) resp.Value;
if (respData.Contains("avcount")) if (respData != null && respData.Contains("avcount"))
{ {
buddylist = ConvertXMLRPCDataToFriendListItemList(respData); buddylist = ConvertXMLRPCDataToFriendListItemList(respData);
} }