fix comments crash

This commit is contained in:
Austin Huang 2020-12-24 11:05:19 -05:00
parent f909408916
commit 7ee756eff3
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with 1 additions and 1 deletions

View File

@ -84,8 +84,8 @@ public final class CommentsViewerFragment extends BottomSheetDialogFragment impl
@Override
public void onResult(final List<CommentModel> commentModels) {
endCursor = commentModels.get(0).getEndCursor();
if (commentModels != null && commentModels.size() > 0) {
endCursor = commentModels.get(0).getEndCursor();
List<CommentModel> list = commentsViewModel.getList().getValue();
list = list != null ? new LinkedList<>(list) : new LinkedList<>();
// final int oldSize = list != null ? list.size() : 0;