mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +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.xmllangAttribute(lang);
|
||||
xml.attribute("category", category);
|
||||
xml.attribute("name", name);
|
||||
xml.optAttribute("name", name);
|
||||
xml.optAttribute("type", type);
|
||||
xml.closeEmptyElement();
|
||||
return xml;
|
||||
|
|
Loading…
Reference in a new issue