only try to change affilations for known jids

This commit is contained in:
Daniel Gultsch 2015-07-11 21:24:51 +02:00
parent 4274fe90ac
commit 58bc4cba06

View file

@ -1699,7 +1699,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
public void changeAffiliationsInConference(final Conversation conference, MucOptions.Affiliation before, MucOptions.Affiliation after) {
List<Jid> jids = new ArrayList<>();
for (MucOptions.User user : conference.getMucOptions().getUsers()) {
if (user.getAffiliation() == before) {
if (user.getAffiliation() == before && user.getJid() != null) {
jids.add(user.getJid());
}
}