core: Fix panic in TestContext2Apply_multiVarCountDec

This commit is contained in:
Martin Atkins 2018-09-17 17:20:23 -07:00
parent cf903b9bec
commit f439422b6f
1 changed files with 1 additions and 1 deletions

View File

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