diff --git a/probe/awsecs/client.go b/probe/awsecs/client.go index 3c707339dd..e97f7e6d69 100644 --- a/probe/awsecs/client.go +++ b/probe/awsecs/client.go @@ -209,7 +209,9 @@ func (c ecsClientImpl) describeServicesBatch(names []string) { } for _, service := range resp.Services { - c.serviceCache.Set(*service.ServiceName, newECSService(service)) + if service != nil { + c.serviceCache.Set(*service.ServiceName, newECSService(service)) + } } }