Skip to content

Commit

Permalink
defend against nils
Browse files Browse the repository at this point in the history
Fixes #2508. Hopefully.
  • Loading branch information
rade committed Jul 20, 2017
1 parent 0c505ce commit d368854
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 d368854

Please sign in to comment.