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) {
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue