mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Fix NPE in MUCItem if role is null
This commit is contained in:
parent
dfc4173e5b
commit
5d963f7f9b
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ public class MUCItem implements NamedElement {
|
||||||
xml.optAttribute("affiliation", getAffiliation());
|
xml.optAttribute("affiliation", getAffiliation());
|
||||||
xml.optAttribute("jid", getJid());
|
xml.optAttribute("jid", getJid());
|
||||||
xml.optAttribute("nick", getNick());
|
xml.optAttribute("nick", getNick());
|
||||||
if (role != MUCRole.none) {
|
if (role != null && role != MUCRole.none) {
|
||||||
xml.attribute("role", getRole());
|
xml.attribute("role", getRole());
|
||||||
}
|
}
|
||||||
xml.rightAngleBracket();
|
xml.rightAngleBracket();
|
||||||
|
|
Loading…
Reference in a new issue