Skip to content

Commit 4a295f0

Browse files
close #1638
1 parent 0535df2 commit 4a295f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/awais/instagrabber/fragments/StoryListViewerFragment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public void onSuccess(final ArchiveResponse result) {
118118
endCursor = result.getMaxId();
119119
final List<Story> models = archivesViewModel.getList().getValue();
120120
final List<Story> modelsCopy = models == null ? new ArrayList<>() : new ArrayList<>(models);
121-
modelsCopy.addAll(result.getItems());
121+
if (result.getItems() != null) modelsCopy.addAll(result.getItems());
122122
archivesViewModel.getList().postValue(modelsCopy);
123123
}
124124
}

0 commit comments

Comments
 (0)