Skip to content

Commit b7b2c20

Browse files
committed
AC-15542::Unit Test failure on PRs which is blocking unit tests on multiple PRs
1 parent 527580b commit b7b2c20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/Type/AbstractType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,10 @@ public function retrieveAttribute($attributeCode, $attributeSet)
266266
protected function _getProductAttributes($attrSetData)
267267
{
268268
if (is_array($attrSetData)) {
269-
return $this->_attributes[$attrSetData[Product::COL_ATTR_SET]];
269+
$setName = $attrSetData[Product::COL_ATTR_SET] ?? null;
270+
return $setName !== null && isset($this->_attributes[$setName]) ? $this->_attributes[$setName] : [];
270271
} else {
271-
return $this->_attributes[$attrSetData];
272+
return isset($this->_attributes[$attrSetData]) ? $this->_attributes[$attrSetData] : [];
272273
}
273274
}
274275

0 commit comments

Comments
 (0)