Skip to content

Commit f0b0941

Browse files
ENGCOM-2214: [Forwardport] Incorrect value NULL was passed to DataObject constructor. It caused … #16596
- Merge Pull Request #16596 from gelanivishal/magento2:2.3-develop-PR-port-16220-2 - Merged commits: 1. 795b2c6
2 parents 113bf62 + 795b2c6 commit f0b0941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Wishlist/Model/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public function getProductUrl()
473473
public function getBuyRequest()
474474
{
475475
$option = $this->getOptionByCode('info_buyRequest');
476-
$initialData = $option ? $this->serializer->unserialize($option->getValue()) : null;
476+
$initialData = $option ? $this->serializer->unserialize($option->getValue()) : [];
477477

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

0 commit comments

Comments
 (0)