defend against nils

Fixes #2508. Hopefully.
This commit is contained in:
Matthias Radestock
2017-07-20 15:59:59 +01:00
parent 0c505ced9c
commit d368854b90

View File

@@ -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))
}
}