fixed npe in message parser
This commit is contained in:
parent
16c6f8d2ff
commit
44028a547f
|
@ -408,7 +408,7 @@ public class MessageParser extends AbstractParser implements
|
||||||
.getAttribute("id");
|
.getAttribute("id");
|
||||||
updateLastseen(packet, account, true);
|
updateLastseen(packet, account, true);
|
||||||
final Message displayedMessage = mXmppConnectionService.markMessage(account, from.toBareJid(), id, Message.STATUS_SEND_DISPLAYED);
|
final Message displayedMessage = mXmppConnectionService.markMessage(account, from.toBareJid(), id, Message.STATUS_SEND_DISPLAYED);
|
||||||
Message message = displayedMessage.prev();
|
Message message = displayedMessage == null ? null :displayedMessage.prev();
|
||||||
while (message != null
|
while (message != null
|
||||||
&& message.getStatus() == Message.STATUS_SEND_RECEIVED
|
&& message.getStatus() == Message.STATUS_SEND_RECEIVED
|
||||||
&& message.getTimeSent() < displayedMessage.getTimeSent()) {
|
&& message.getTimeSent() < displayedMessage.getTimeSent()) {
|
||||||
|
|
Loading…
Reference in New Issue