From f439422b6f6b5b85072adf298ef038370fb8739d Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 17 Sep 2018 17:20:23 -0700 Subject: [PATCH] core: Fix panic in TestContext2Apply_multiVarCountDec --- terraform/context_apply_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/context_apply_test.go b/terraform/context_apply_test.go index 3fbeb5c65..64ce6c6fb 100644 --- a/terraform/context_apply_test.go +++ b/terraform/context_apply_test.go @@ -3858,7 +3858,7 @@ func TestContext2Apply_multiVarCountDec(t *testing.T) { lock.Lock() defer lock.Unlock() - if id.Attributes["ami"].New == "special" { + if id != nil && id.Attributes != nil && id.Attributes["ami"] != nil && id.Attributes["ami"].New == "special" { checked = true // Sleep to allow parallel execution