aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPrivateMessagesActivity.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPrivateMessagesActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPrivateMessagesActivity.java
index 77df7de1..46656aa4 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPrivateMessagesActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPrivateMessagesActivity.java
@@ -334,10 +334,12 @@ public class ViewPrivateMessagesActivity extends BaseActivity implements Activit
privateMessage = passPrivateMessageEvent.message;
if (privateMessage != null) {
if (privateMessage.getAuthor().equals(mAccountName)) {
- for (int i = privateMessage.getReplies().size() - 1; i >= 0; i--) {
- if (!privateMessage.getReplies().get(i).getAuthor().equals(mAccountName)) {
- replyTo = privateMessage.getReplies().get(i);
- break;
+ if (privateMessage.getReplies() != null) {
+ for (int i = privateMessage.getReplies().size() - 1; i >= 0; i--) {
+ if (!privateMessage.getReplies().get(i).getAuthor().equals(mAccountName)) {
+ replyTo = privateMessage.getReplies().get(i);
+ break;
+ }
}
}
if (replyTo == null) {