fix(custom-local-timelines-filters): check if filtered status is null before iterating on them

This commit is contained in:
LucasGGamerM
2024-05-11 15:06:37 -03:00
parent 129ce09c9f
commit faee3e3dd6

View File

@@ -315,6 +315,9 @@ public class AccountSession{
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;