1
0
Fork 0
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:
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.
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);