From d3d6e3f920ee4b9c5909d0f03f9b21b953c3ce3c Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 4 Oct 2024 19:23:18 +0200 Subject: [PATCH] [bugfix] Don't try to add nil filtered statuses to context (#3388) --- internal/processing/common/status.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/processing/common/status.go b/internal/processing/common/status.go index dd83a2cc5..da5cf1290 100644 --- a/internal/processing/common/status.go +++ b/internal/processing/common/status.go @@ -247,6 +247,12 @@ func (p *Processor) GetVisibleAPIStatuses( continue } + if apiStatus == nil { + // Status was + // filtered out. + continue + } + // Append converted status to return slice. apiStatuses = append(apiStatuses, *apiStatus) }