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:
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.
|
// 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);
|
||||||
|
|
Loading…
Reference in a new issue