Don't try to package null invites.

bullet-2.82
Diva Canto 2014-06-08 12:18:26 -07:00
parent 74cda2ad78
commit 7f45ac72e1
1 changed files with 5 additions and 1 deletions

View File

@ -665,7 +665,11 @@ namespace OpenSim.Groups
GroupInviteInfo invite = m_GroupsService.GetAgentToGroupInvite(request["RequestingAgentID"].ToString(), GroupInviteInfo invite = m_GroupsService.GetAgentToGroupInvite(request["RequestingAgentID"].ToString(),
new UUID(request["InviteID"].ToString())); new UUID(request["InviteID"].ToString()));
if (invite != null)
result["RESULT"] = GroupsDataUtils.GroupInviteInfo(invite); result["RESULT"] = GroupsDataUtils.GroupInviteInfo(invite);
else
result["RESULT"] = "NULL";
return Util.UTF8NoBomEncoding.GetBytes(ServerUtils.BuildXmlResponse(result)); return Util.UTF8NoBomEncoding.GetBytes(ServerUtils.BuildXmlResponse(result));
} }