From d368854b902fe7164c6fe6266024b857aa43276d Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 20 Jul 2017 15:59:59 +0100 Subject: [PATCH] defend against nils Fixes #2508. Hopefully. --- probe/awsecs/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/awsecs/client.go b/probe/awsecs/client.go index e97f7e6d69..3f6110710b 100644 --- a/probe/awsecs/client.go +++ b/probe/awsecs/client.go @@ -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)) } }