Skip to content

Commit bd4aabb

Browse files
authored
Merge pull request #10101 from magento-gl/AC-15542
AC-15542::Unit Test failure on PRs which is blocking unit tests on multiple PR's
2 parents a1c57b2 + 2c63173 commit bd4aabb

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)