fix(custom-local-timelines-filters): check if filtered status is null before iterating on them
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user