diff --git a/packages/Webkul/Product/src/Models/ProductFlat.php b/packages/Webkul/Product/src/Models/ProductFlat.php index 70b993a20..fadd879cd 100644 --- a/packages/Webkul/Product/src/Models/ProductFlat.php +++ b/packages/Webkul/Product/src/Models/ProductFlat.php @@ -87,8 +87,10 @@ class ProductFlat extends Model implements ProductFlatContract if ($attribute && ($attribute->value_per_channel || $attribute->value_per_locale)) { $defaultProduct = $this->getDefaultProduct(); - $this->attributes[$key] = $defaultProduct->attributes[$key]; - + try { + $this->attributes[$key] = $defaultProduct->attributes[$key]; + } + catch(Exception $ex){} return $this->getAttributeValue($key); } }