diff --git a/components/event-bus/cmd/mesh-namespaces-migration/serviceinstance.go b/components/event-bus/cmd/mesh-namespaces-migration/serviceinstance.go index fee33b993646..1c94ebc42fd1 100644 --- a/components/event-bus/cmd/mesh-namespaces-migration/serviceinstance.go +++ b/components/event-bus/cmd/mesh-namespaces-migration/serviceinstance.go @@ -91,6 +91,10 @@ func (m *serviceInstanceManager) populateServiceInstances(namespaces []string) e } for _, svci := range svcis.Items { + // Eventing ServiceInstance will only have ServiceClassRef hence rest are ignored + if svci.Spec.ServiceClassRef == nil { + continue + } scName := svci.Spec.ServiceClassRef.Name _, isEventsClass := eventsSvcClasses[scName]