Skip to content

Commit

Permalink
fix(thread-fragment): fixes crash when status.inReplyTo is null on ge…
Browse files Browse the repository at this point in the history
…tDirectDescendants
  • Loading branch information
LucasGGamerM committed Sep 19, 2023
1 parent 24abf9d commit 7c9d11f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private static List<Status> getDescendantsOrdered(String id, List<Status> status

private static List<Status> getDirectDescendants(String id, List<Status> statuses){
return statuses.stream()
.filter(s -> s.inReplyToId.equals(id))
.filter(s -> id.equals(s.inReplyToId))
.collect(Collectors.toList());
}

Expand Down

0 comments on commit 7c9d11f

Please sign in to comment.