mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Merge pull request #2515 from weaveworks/2508-avoid-null-derreferences-encore
Avoid null dereferences in ECS client (encore)
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user