aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/parser/MessageParser.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/eu/siacs/conversations/parser/MessageParser.java b/src/eu/siacs/conversations/parser/MessageParser.java
index a4fcc810..616e6f4b 100644
--- a/src/eu/siacs/conversations/parser/MessageParser.java
+++ b/src/eu/siacs/conversations/parser/MessageParser.java
@@ -174,12 +174,16 @@ public class MessageParser extends AbstractParser implements
}
if (status == Message.STATUS_RECIEVED) {
fullJid = message.getAttribute("from");
- updateLastseen(message, account, true);
+ if (fullJid == null ) {
+ return null;
+ } else {
+ updateLastseen(message, account, true);
+ }
} else {
fullJid = message.getAttribute("to");
- }
- if (fullJid==null) {
- return null;
+ if (fullJid == null) {
+ return null;
+ }
}
String[] parts = fullJid.split("/");
Conversation conversation = mXmppConnectionService