powered by Jive Software

org.igniterealtime.xiff.data.Message.status bug?

org.igniterealtime.xiff.data.Message.status bug??

if (myStateNode && (value == null || value == “”))
{
// XML.delete
myStateNode.removeNode();
myStateNode = null;
}
else if (myStateNode && (value != null || value != “”))
{
myStateNode.nodeName = value;
}
else if (!myStateNode && (value != null || value != “”))
{
myStateNode = XMLStanza.XMLFactory.createElement(value);
myStateNode.attributes = { xmlns: ChatStateExtension.NS };
getNode().appendChild(myStateNode);
}

have u guys notice that?

replace" || " with " && "?

Um… there is no “status” property in Message, but you probably meant the “state”.

Commited a simple replacement with the suggested &&.

There will be a more complete rewrite of all the XML related parts of the library soon…