mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22:05 +01:00
Assume Presence priority to be zero when priority is out of range. SMACK-60
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2518 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
aaa723ffaf
commit
7b62abf071
1 changed files with 4 additions and 0 deletions
|
@ -155,6 +155,10 @@ public class PacketParserUtils {
|
|||
presence.setPriority(priority);
|
||||
}
|
||||
catch (NumberFormatException nfe) { }
|
||||
catch (IllegalArgumentException iae) {
|
||||
// Presence priority is out of range so assume priority to be zero
|
||||
presence.setPriority(0);
|
||||
}
|
||||
}
|
||||
else if (elementName.equals("show")) {
|
||||
presence.setMode(Presence.Mode.fromString(parser.nextText()));
|
||||
|
|
Loading…
Reference in a new issue