Skip to content

Commit

Permalink
See scandipwa/scandipwa#3134 Added check whether customer id is set
Browse files Browse the repository at this point in the history
  • Loading branch information
zans-laksa committed Aug 27, 2021
1 parent 53cc81e commit b932820
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Model/Resolver/Wishlist/CreatorResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public function resolve(
}

$customerId = $wishlist->getCustomerId();

if (!$customerId) {
return null;
}

/** @var CustomerInterface $customer */
$customer = $this->customerRepository->getById($customerId);

Expand Down

0 comments on commit b932820

Please sign in to comment.