Skip to content

Commit

Permalink
Merge pull request #2515 from weaveworks/2508-avoid-null-derreference…
Browse files Browse the repository at this point in the history
…s-encore

Avoid null dereferences in ECS client (encore)
  • Loading branch information
Alfonso Acosta authored May 10, 2017
2 parents 9d89e8b + aec7156 commit ec6d5e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion probe/awsecs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}

Expand Down

0 comments on commit ec6d5e9

Please sign in to comment.