From 7c9d11fab0f79c79e69ab1bc5a961c7a04ff6c6f Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Tue, 19 Sep 2023 14:25:03 -0300 Subject: [PATCH] fix(thread-fragment): fixes crash when status.inReplyTo is null on getDirectDescendants --- .../java/org/joinmastodon/android/fragments/ThreadFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ThreadFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ThreadFragment.java index 31a981a7a..3178d4687 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ThreadFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ThreadFragment.java @@ -321,7 +321,7 @@ public class ThreadFragment extends StatusListFragment implements ProvidesAssist private static List getDirectDescendants(String id, List statuses){ return statuses.stream() - .filter(s -> s.inReplyToId.equals(id)) + .filter(s -> id.equals(s.inReplyToId)) .collect(Collectors.toList()); }