Merge pull request #2734 from weaveworks/2508-ecs-nil-defence

defend against nils
This commit is contained in:
Matthias Radestock
2017-07-20 16:32:40 +01:00
committed by GitHub

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