aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/entities
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-10-09 23:08:40 +0200
committeriNPUTmice <daniel@gultsch.de>2014-10-09 23:08:40 +0200
commitc6f9b23def1684acd754e3db6712a7a5efbd5b42 (patch)
tree37a35eaa8bc84bc329bb27a1161c241a5509a9fb /src/eu/siacs/conversations/entities
parent47105a677a31dc312c288d8e40fc8d2c9e038df7 (diff)
fixed npes
Diffstat (limited to 'src/eu/siacs/conversations/entities')
-rw-r--r--src/eu/siacs/conversations/entities/Conversation.java3
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 60afaa5d..b4c99dc1 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()) {