aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/entities
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 20:09:28 +0200
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 20:09:28 +0200
commit0389f67482e3b79c72682fa445ff17e7aa9031f3 (patch)
tree49c83d8a9e839a5572152ad5b00fa112d989727d /src/main/java/de/pixart/messenger/entities
parentc85b487fca553a9c154dc3b1a1c0e7a4a8708108 (diff)
attempt to fix some rare crashes
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities')
-rw-r--r--src/main/java/de/pixart/messenger/entities/MucOptions.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/MucOptions.java b/src/main/java/de/pixart/messenger/entities/MucOptions.java
index e73fcfcac..40a0be58d 100644
--- a/src/main/java/de/pixart/messenger/entities/MucOptions.java
+++ b/src/main/java/de/pixart/messenger/entities/MucOptions.java
@@ -336,7 +336,7 @@ public class MucOptions {
}
public boolean isContactInRoom(Contact contact) {
- return findUserByRealJid(contact.getJid().asBareJid()) != null;
+ return contact != null && findUserByRealJid(contact.getJid().asBareJid()) != null;
}
public boolean isUserInRoom(Jid jid) {