File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/ConfigurableProduct Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function getProductForThumbnail()
65
65
self ::CONFIG_THUMBNAIL_SOURCE ,
66
66
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
67
67
) == ThumbnailSource::OPTION_USE_PARENT_IMAGE ||
68
- !($ this ->getChildProduct ()->getThumbnail () && $ this ->getChildProduct ()->getThumbnail () != 'no_selection ' )
68
+ !($ this ->getChildProduct () && $ this -> getChildProduct () ->getThumbnail () && $ this ->getChildProduct ()->getThumbnail () != 'no_selection ' )
69
69
) {
70
70
$ product = $ this ->getProduct ();
71
71
} else {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ protected function getProductForThumbnail()
63
63
);
64
64
65
65
$ product = $ config == ThumbnailSource::OPTION_USE_PARENT_IMAGE
66
- || (!$ this ->getChildProduct ()->getThumbnail () || $ this ->getChildProduct ()->getThumbnail () == 'no_selection ' )
66
+ || (!$ this ->getChildProduct () || ! $ this -> getChildProduct () ->getThumbnail () || $ this ->getChildProduct ()->getThumbnail () == 'no_selection ' )
67
67
? $ this ->getProduct ()
68
68
: $ this ->getChildProduct ();
69
69
You can’t perform that action at this time.
0 commit comments