diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-05-03 13:13:06 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-05-03 13:13:06 +0000 |
commit | 6c837186887059cf159352ba6d0dd0f841537fc2 (patch) | |
tree | 89316a8bfe06904dbfd8d4279274208f42a98857 /app/src/main | |
parent | ffe3e0d070e36ff6999d3c579b0c6c9f7abb6f0d (diff) | |
download | infinity-for-reddit-6c837186887059cf159352ba6d0dd0f841537fc2.tar infinity-for-reddit-6c837186887059cf159352ba6d0dd0f841537fc2.tar.gz infinity-for-reddit-6c837186887059cf159352ba6d0dd0f841537fc2.tar.bz2 infinity-for-reddit-6c837186887059cf159352ba6d0dd0f841537fc2.tar.lz infinity-for-reddit-6c837186887059cf159352ba6d0dd0f841537fc2.tar.xz infinity-for-reddit-6c837186887059cf159352ba6d0dd0f841537fc2.tar.zst infinity-for-reddit-6c837186887059cf159352ba6d0dd0f841537fc2.zip |
Fix https://github.com/Docile-Alligator/Infinity-For-Reddit/issues/1450
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPrivateMessagesActivity.java | 10 |
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) { |