diff --git a/xmpp-vala/src/module/xep/0045_muc/flag.vala b/xmpp-vala/src/module/xep/0045_muc/flag.vala index 0e1d0c10..da469a41 100644 --- a/xmpp-vala/src/module/xep/0045_muc/flag.vala +++ b/xmpp-vala/src/module/xep/0045_muc/flag.vala @@ -27,10 +27,11 @@ public class Flag : XmppStreamFlag { public string? get_real_jid(string full_jid) { return occupant_real_jids[full_jid]; } - public Gee.List get_offline_members(string full_jid) { + public Gee.List get_offline_members(string muc_jid) { Gee.List ret = new ArrayList(); - foreach (string muc_jid in affiliations.keys) { - foreach (string jid in affiliations[muc_jid].keys) { + HashMap? muc_affiliations = affiliations[muc_jid]; + if (muc_affiliations != null) { + foreach (string jid in muc_affiliations.keys) { if (!jid.has_prefix(muc_jid)) ret.add(jid); } }