1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-30 02:02:06 +01:00

Fix not-well-format packet exception when set property for packet

This commit is contained in:
XiaoweiYan 2014-04-08 17:34:20 +08:00 committed by Florian Schmaus
parent 5832236578
commit afa4ce5773

View file

@ -371,6 +371,7 @@ public abstract class Packet {
// Add in packet properties. // Add in packet properties.
if (properties != null && !properties.isEmpty()) { if (properties != null && !properties.isEmpty()) {
xml.halfOpenElement("properties").xmlnsAttribute("http://www.jivesoftware.com/xmlns/xmpp/properties"); xml.halfOpenElement("properties").xmlnsAttribute("http://www.jivesoftware.com/xmlns/xmpp/properties");
xml.rightAngelBracket();
// Loop through all properties and write them out. // Loop through all properties and write them out.
for (String name : getPropertyNames()) { for (String name : getPropertyNames()) {
Object value = getProperty(name); Object value = getProperty(name);