Skip to content

Commit

Permalink
fix(custom-local-timelines-filters): check if filtered status is null…
Browse files Browse the repository at this point in the history
… before iterating on them
  • Loading branch information
LucasGGamerM committed May 11, 2024
1 parent 129ce09 commit faee3e3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ public <T> boolean filterStatusContainingObject(T object, Function<T, Status> ex
return true;
// Even with server-side filters, clients are expected to remove statuses that match a filter that hides them
if(getLocalPreferences().serverSideFiltersSupported){
// Moshidon: this code path in CustomLocalTimelines makes the app crash, so this check is here
if (s.filtered == null)
return false;
for(FilterResult filter : s.filtered){
if(filter.filter.isActive() && filter.filter.filterAction==FilterAction.HIDE && filter.filter.context.contains(context))
return true;
Expand Down

0 comments on commit faee3e3

Please sign in to comment.