From 31bccdffd94bc5dd5302bec31dee51220e65b0d6 Mon Sep 17 00:00:00 2001 From: idb Date: Thu, 11 Dec 2008 20:20:21 +0000 Subject: Add a null check. Mantis #2798 --- OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Communications/OGS1/OGS1UserServices.cs') diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index e7577c0..4a44ae6 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs @@ -655,7 +655,7 @@ namespace OpenSim.Region.Communications.OGS1 XmlRpcResponse resp = req.Send(m_commsManager.NetworkServersInfo.UserURL, 8000); Hashtable respData = (Hashtable) resp.Value; - if (respData.Contains("avcount")) + if (respData != null && respData.Contains("avcount")) { buddylist = ConvertXMLRPCDataToFriendListItemList(respData); } -- cgit v1.1