Browse Source

Fixed crash

main
M66B 6 years ago
parent
commit
4a89946fad
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/src/main/java/eu/faircode/email/ViewModelMessages.java

+ 3
- 1
app/src/main/java/eu/faircode/email/ViewModelMessages.java View File

@ -11,10 +11,12 @@ public class ViewModelMessages extends ViewModel {
} }
String[] getPrevNext(String thread) { String[] getPrevNext(String thread) {
if (messages == null)
return new String[]{null, null};
boolean found = false; boolean found = false;
TupleMessageEx prev = null; TupleMessageEx prev = null;
TupleMessageEx next = null; TupleMessageEx next = null;
for (int i = 0; i < messages.size(); i++) { for (int i = 0; i < messages.size(); i++) {
TupleMessageEx item = messages.get(i); TupleMessageEx item = messages.get(i);
if (item == null) if (item == null)


Loading…
Cancel
Save