mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Prevent crash
This commit is contained in:
parent
34df259af5
commit
52097c07c9
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ public class ViewModelMessages extends ViewModel {
|
|||
if (boundary != null) {
|
||||
BoundaryCallbackMessages.State state = boundary.setCallback(callback);
|
||||
PagedList<TupleMessageEx> plist = list.getValue();
|
||||
if (plist != null)
|
||||
if (plist != null && plist.size() > 0)
|
||||
plist.loadAround(0);
|
||||
|
||||
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
||||
|
|
Loading…
Reference in a new issue