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) {
if (messages == null)
return new String[]{null, null};
boolean found = false;
TupleMessageEx prev = null;
TupleMessageEx next = null;
for (int i = 0; i < messages.size(); i++) {
TupleMessageEx item = messages.get(i);
if (item == null)


Loading…
Cancel
Save