null pointer check in notification service
This commit is contained in:
parent
ae35593f65
commit
93836d94ee
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue