null pointer check in notification service

This commit is contained in:
Daniel Gultsch 2018-07-16 20:49:30 +02:00
parent ae35593f65
commit 93836d94ee
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ public class NotificationService {
public void push(final Message message) { public void push(final Message message) {
synchronized (CATCHUP_LOCK) { synchronized (CATCHUP_LOCK) {
final XmppConnection connection = message.getConversation().getAccount().getXmppConnection(); final XmppConnection connection = message.getConversation().getAccount().getXmppConnection();
if (connection.isWaitingForSmCatchup()) { if (connection != null && connection.isWaitingForSmCatchup()) {
connection.incrementSmCatchupMessageCounter(); connection.incrementSmCatchupMessageCounter();
pushFromBacklog(message); pushFromBacklog(message);
} else { } else {