From b9328206c7cf0cca30fe3b023f2d31fa620d0889 Mon Sep 17 00:00:00 2001 From: Zans Laksa Date: Fri, 27 Aug 2021 16:31:08 +0300 Subject: [PATCH] See scandipwa/scandipwa#3134 Added check whether customer id is set --- src/Model/Resolver/Wishlist/CreatorResolver.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Model/Resolver/Wishlist/CreatorResolver.php b/src/Model/Resolver/Wishlist/CreatorResolver.php index c896d4b..828149d 100644 --- a/src/Model/Resolver/Wishlist/CreatorResolver.php +++ b/src/Model/Resolver/Wishlist/CreatorResolver.php @@ -52,6 +52,11 @@ public function resolve( } $customerId = $wishlist->getCustomerId(); + + if (!$customerId) { + return null; + } + /** @var CustomerInterface $customer */ $customer = $this->customerRepository->getById($customerId);