Skip to content

Commit 8192db0

Browse files
Merge pull request #3 from magebitcom/bugfix/fix-null-on-M244
Checks for null attribute value
2 parents f97ebff + 84ae746 commit 8192db0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Model/Indexer/DataProvider/Category/ImageUrlRewrite.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ public function addData(array $indexData, $storeId): array
7676
if ($rewriteCatMediaUrl) {
7777
foreach ($indexData as $categoryId => $categoryData) {
7878
foreach ($categoryData as $attributeCode => $attribute) {
79-
80-
if ($this->checkAttributeIsImage($attributeCode)) {
79+
if ($this->checkAttributeIsImage($attributeCode) && !is_null($attribute)) {
8180
$processable[] = [
8281
'categoryId' => $categoryId,
8382
'attributeId' => $attributeCode,

0 commit comments

Comments
 (0)