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
1 changed files with 1 additions and 0 deletions

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);