forked from mirror/monocles_chat_clean
Fix NPE
(cherry picked from commit 642460af982d797a2e24e4da3d76f58682af88f5)
This commit is contained in:
parent
082eb4a9c0
commit
59c475af9b
1 changed files with 2 additions and 2 deletions
|
@ -522,8 +522,8 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
if (handleErrorMessage(account, packet)) {
|
||||
return;
|
||||
}
|
||||
final var contact = account.getRoster().getContact(packet.getFrom());
|
||||
if (contact.isBlocked()) {
|
||||
final var contact = packet.getFrom() == null ? null : account.getRoster().getContact(packet.getFrom());
|
||||
if (contact != null && contact.isBlocked()) {
|
||||
Log.d(Config.LOGTAG, "Got MAM result from blocked contact, ignoring...");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue