From a8edc908e0a4032ea8ae8896196ffd46e0e3ba82 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 8 Jun 2014 12:18:26 -0700 Subject: Don't try to package null invites. --- OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs b/OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs index 52b9728..95c3208 100644 --- a/OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs +++ b/OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs @@ -665,7 +665,11 @@ namespace OpenSim.Groups GroupInviteInfo invite = m_GroupsService.GetAgentToGroupInvite(request["RequestingAgentID"].ToString(), new UUID(request["InviteID"].ToString())); - result["RESULT"] = GroupsDataUtils.GroupInviteInfo(invite); + if (invite != null) + result["RESULT"] = GroupsDataUtils.GroupInviteInfo(invite); + else + result["RESULT"] = "NULL"; + return Util.UTF8NoBomEncoding.GetBytes(ServerUtils.BuildXmlResponse(result)); } -- cgit v1.1