aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-27 22:31:33 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-27 22:31:33 +0200
commit4c90bd9b4686f63b3d13270a58448063aade82b3 (patch)
tree42da9ecfb637542830955b5d36aa4729787da943 /src/eu/siacs
parentaf85964820e91c1a83971cb436786c0cb6134867 (diff)
fixed bug in message parser
Diffstat (limited to 'src/eu/siacs')
-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 a4fcc810d..616e6f4b4 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