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

View file

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