Skip to content

Commit

Permalink
Merge pull request #2734 from weaveworks/2508-ecs-nil-defence
Browse files Browse the repository at this point in the history
defend against nils
  • Loading branch information
rade authored Jul 20, 2017
2 parents 0c505ce + d368854 commit d14acfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe/awsecs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit d14acfb

Please sign in to comment.