diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-07-03 21:32:46 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-07-03 21:32:46 +0200 |
commit | d30fb6f0a15fe574069694732bb23c339f0c30d1 (patch) | |
tree | 6d66b2cc23c16daf1044e773bd37ce0963ac281b /src/main/java/eu/siacs/conversations/entities | |
parent | 1c86098f3b4360eae76f39359281dbdf88321d9f (diff) |
avoid very rare npe
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Roster.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Roster.java b/src/main/java/eu/siacs/conversations/entities/Roster.java index d6777ef6..628a31d1 100644 --- a/src/main/java/eu/siacs/conversations/entities/Roster.java +++ b/src/main/java/eu/siacs/conversations/entities/Roster.java @@ -74,6 +74,9 @@ public class Roster { } public void initContact(final Contact contact) { + if (contact == null) { + return; + } contact.setAccount(account); contact.setOption(Contact.Options.IN_ROSTER); synchronized (this.contacts) { |