Integer.MIN_VALUE is used as marker that the parsed presence did not had a priority explicitly set. The issue is that
Presence.getPriority() will also return it when invoked. The fix is to make
getPriority() return if the
priority field is set to
Created SMACK-787 to track this. Thanks for reporting.