mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +01:00
Fix NPE in DiscoverInfo.Identities XmlStringBuilder
The 'name' attribute of an service discovery identity is optional. Thanks to Jens Offenbach for reporting.
This commit is contained in:
parent
07d6b9203c
commit
7a5533c823
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ public class DiscoverInfo extends IQ implements Cloneable {
|
||||||
xml.halfOpenElement("identity");
|
xml.halfOpenElement("identity");
|
||||||
xml.xmllangAttribute(lang);
|
xml.xmllangAttribute(lang);
|
||||||
xml.attribute("category", category);
|
xml.attribute("category", category);
|
||||||
xml.attribute("name", name);
|
xml.optAttribute("name", name);
|
||||||
xml.optAttribute("type", type);
|
xml.optAttribute("type", type);
|
||||||
xml.closeEmptyElement();
|
xml.closeEmptyElement();
|
||||||
return xml;
|
return xml;
|
||||||
|
|
Loading…
Reference in a new issue