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);