diff --git a/pkg/k8s/informers.go b/pkg/k8s/informers.go index 655f3901..ca423792 100644 --- a/pkg/k8s/informers.go +++ b/pkg/k8s/informers.go @@ -431,7 +431,9 @@ func (k k8s) getIngressInformers(eventChan chan SyncDataEvent, factory informers } if ii != nil { k.addIngressHandlers(eventChan, ii) - k.addIngressClassHandlers(eventChan, ici) + if ici != nil { + k.addIngressClassHandlers(eventChan, ici) + } return } }