Merge pull request #2515 from weaveworks/2508-avoid-null-derreferences-encore

Avoid null dereferences in ECS client (encore)
This commit is contained in:
Alfonso Acosta
2017-05-10 19:56:29 +02:00
committed by GitHub

View File

@@ -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))
}
}
}