We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c84ec commit 405dfecCopy full SHA for 405dfec
app/code/Magento/Catalog/Helper/Image.php
@@ -514,7 +514,7 @@ protected function initBaseFile()
514
if ($this->getImageFile()) {
515
$model->setBaseFile($this->getImageFile());
516
} else {
517
- $model->setBaseFile($this->getProduct()->getData($model->getDestinationSubdir()));
+ $model->setBaseFile($this->getProduct() ? $this->getProduct()->getData($model->getDestinationSubdir()) : '');
518
}
519
520
return $this;
0 commit comments