From 795b2c6152e0fdf27bfb720d18e1bcd29723b154 Mon Sep 17 00:00:00 2001 From: jakhotiya Date: Mon, 18 Jun 2018 23:45:42 +0530 Subject: [PATCH] Incorrect value NULL was passed to DataObject constructor. It caused fatal error. Fixed it by passing an empty array instead --- app/code/Magento/Wishlist/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Wishlist/Model/Item.php b/app/code/Magento/Wishlist/Model/Item.php index b0e7c78cae5f4..41e83c7179e10 100644 --- a/app/code/Magento/Wishlist/Model/Item.php +++ b/app/code/Magento/Wishlist/Model/Item.php @@ -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();