diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java index 8bd7c1e0d..cc2a90e36 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/Presence.java @@ -209,6 +209,9 @@ public final class Presence extends Stanza implements TypedCloneable { * @see RFC 6121 ยง 4.7.2.3. Priority Element */ public int getPriority() { + if (priority == Integer.MIN_VALUE) { + return 0; + } return priority; }