1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +01:00

Merge pull request #131 from alextov/patch-1

Fix NPE in hashCode() in Occupant when jid is null
This commit is contained in:
Florian Schmaus 2017-05-19 13:29:19 +02:00 committed by GitHub
commit 1f4a728c37

View file

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