mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Fix not-well-format packet exception when set property for packet
This commit is contained in:
parent
5832236578
commit
afa4ce5773
1 changed files with 1 additions and 0 deletions
|
@ -371,6 +371,7 @@ public abstract class Packet {
|
|||
// Add in packet properties.
|
||||
if (properties != null && !properties.isEmpty()) {
|
||||
xml.halfOpenElement("properties").xmlnsAttribute("http://www.jivesoftware.com/xmlns/xmpp/properties");
|
||||
xml.rightAngelBracket();
|
||||
// Loop through all properties and write them out.
|
||||
for (String name : getPropertyNames()) {
|
||||
Object value = getProperty(name);
|
||||
|
|
Loading…
Reference in a new issue