Commit 35ef7688 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed to consider priority zero when no value was provided.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@212 b35dd754-fafc-0310-a699-88a17e54d16e
parent 35d2feaa
......@@ -93,6 +93,8 @@ public class PresenceImpl extends AbstractPacket implements Presence, Cacheable
Element root = doc.getRootElement();
show = Presence.SHOW_NONE;
// Default priority is zero unless a value is provided
priority = 0;
Iterator subElements = root.elementIterator();
while (subElements.hasNext()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment