1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

Fix NPE in hashCode() in Occupant when jid is null

Fixes SMACK-764.
This commit is contained in:
Alexander Tovstonozhenko 2017-05-19 10:16:18 +03:00
parent 5f900d3713
commit b636883ce6

View file

@ -124,7 +124,7 @@ public class Occupant {
int result;
result = affiliation.hashCode();
result = 17 * result + role.hashCode();
result = 17 * result + jid.hashCode();
result = 17 * result + (jid != null ? jid.hashCode() : 0);
result = 17 * result + (nick != null ? nick.hashCode() : 0);
return result;
}