diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-10-09 23:08:40 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-10-09 23:08:40 +0200 |
commit | c6f9b23def1684acd754e3db6712a7a5efbd5b42 (patch) | |
tree | 37a35eaa8bc84bc329bb27a1161c241a5509a9fb /src/eu/siacs/conversations/entities | |
parent | 47105a677a31dc312c288d8e40fc8d2c9e038df7 (diff) |
fixed npes
Diffstat (limited to 'src/eu/siacs/conversations/entities')
-rw-r--r-- | src/eu/siacs/conversations/entities/Conversation.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/Conversation.java b/src/eu/siacs/conversations/entities/Conversation.java index 60afaa5de..b4c99dc1a 100644 --- a/src/eu/siacs/conversations/entities/Conversation.java +++ b/src/eu/siacs/conversations/entities/Conversation.java @@ -139,6 +139,9 @@ public class Conversation extends AbstractEntity { } public String getLatestMarkableMessageId() { + if (this.messages == null) { + return null; + } for(int i = this.messages.size() - 1; i >= 0; --i) { if (this.messages.get(i).getStatus() <= Message.STATUS_RECEIVED && this.messages.get(i).markable) { if (this.messages.get(i).isRead()) { |