Skip to content

Commit

Permalink
Incorrect value NULL was passed to DataObject constructor. It caused …
Browse files Browse the repository at this point in the history
…fatal error. Fixed it by passing an empty array instead
  • Loading branch information
Jakhotiya authored and gelanivishal committed Jul 6, 2018
1 parent f947cad commit 795b2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Wishlist/Model/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public function getProductUrl()
public function getBuyRequest()
{
$option = $this->getOptionByCode('info_buyRequest');
$initialData = $option ? $this->serializer->unserialize($option->getValue()) : null;
$initialData = $option ? $this->serializer->unserialize($option->getValue()) : [];

if ($initialData instanceof \Magento\Framework\DataObject) {
$initialData = $initialData->getData();
Expand Down

0 comments on commit 795b2c6

Please sign in to comment.