Commit c2394c71 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added safety check.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3335 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0f61a551
......@@ -336,7 +336,11 @@ public class RosterManager extends BasicModule implements GroupEventListener {
}
public void memberRemoved(Group group, Map params) {
JID deletedUser = new JID((String) params.get("member"));
String member = (String) params.get("member");
if (member == null) {
return;
}
JID deletedUser = new JID(member);
// Do nothing if the user is still an admin
if (group.getAdmins().contains(deletedUser)) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment