core: Fix panic in TestContext2Apply_multiVarCountDec
This commit is contained in:
parent
cf903b9bec
commit
f439422b6f
|
@ -3858,7 +3858,7 @@ func TestContext2Apply_multiVarCountDec(t *testing.T) {
|
||||||
lock.Lock()
|
lock.Lock()
|
||||||
defer lock.Unlock()
|
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
|
checked = true
|
||||||
|
|
||||||
// Sleep to allow parallel execution
|
// Sleep to allow parallel execution
|
||||||
|
|
Loading…
Reference in New Issue