From 4a295f0617d010e1e8edbc5871d523eb0b958182 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 13 Jul 2021 21:19:44 -0400 Subject: [PATCH] close #1638 --- .../awais/instagrabber/fragments/StoryListViewerFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java b/app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java index 92dd23e4..dfc4130b 100644 --- a/app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java @@ -118,7 +118,7 @@ public final class StoryListViewerFragment extends Fragment implements SwipeRefr endCursor = result.getMaxId(); final List models = archivesViewModel.getList().getValue(); final List modelsCopy = models == null ? new ArrayList<>() : new ArrayList<>(models); - modelsCopy.addAll(result.getItems()); + if (result.getItems() != null) modelsCopy.addAll(result.getItems()); archivesViewModel.getList().postValue(modelsCopy); } }