Fixed crash

This commit is contained in:
M66B 2021-09-28 14:34:00 +02:00
parent 8fd0ceee47
commit 8917609d0e
1 changed files with 2 additions and 2 deletions

View File

@ -5192,13 +5192,13 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override
public void onLoading() {
loading = true;
updateListState("Loading", SimpleTask.getCount(), adapter.getItemCount());
updateListState("Loading", SimpleTask.getCount(), adapter == null ? 0 : adapter.getItemCount());
}
@Override
public void onLoaded(int found) {
loading = false;
updateListState("Loaded found=" + found, SimpleTask.getCount(), adapter.getItemCount() + found);
updateListState("Loaded found=" + found, SimpleTask.getCount(), adapter == null ? 0 : adapter.getItemCount() + found);
}
@Override