mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-22 19:39:26 +00:00
Merge pull request #2734 from weaveworks/2508-ecs-nil-defence
defend against nils
This commit is contained in:
@@ -240,7 +240,7 @@ func (c ecsClientImpl) getTasks(taskARNs []string) {
|
||||
}
|
||||
|
||||
for _, task := range resp.Tasks {
|
||||
if task.TaskArn != nil {
|
||||
if task != nil && task.TaskArn != nil {
|
||||
c.taskCache.Set(*task.TaskArn, newECSTask(task))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user