diff --git a/scrapers/kubernetes/informers.go b/scrapers/kubernetes/informers.go index 78d60ec8..b7cc7c5b 100644 --- a/scrapers/kubernetes/informers.go +++ b/scrapers/kubernetes/informers.go @@ -357,6 +357,10 @@ func NewQueueItem(obj *unstructured.Unstructured, operation QueueItemOperation) } func pqComparator(a, b any) int { + if a == nil || b == nil { + return 0 + } + qa := a.(*QueueItem) qb := b.(*QueueItem)