Skip to content

Commit

Permalink
Merge branch '2.10.x' into 2.11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rbayet committed Dec 4, 2024
2 parents 6ff6460 + bb8645f commit 2f221c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function isCompanyEnabled()
*/
public function getCompaniesList()
{
if ($this->isCompanyEnabled()) {
if ($this->isCompanyEnabled() && ($this->companyRepository !== null)) {
$searchCriteria = $this->searchCriteriaBuilder->create();

return $this->companyRepository->getList($searchCriteria)->getItems(); // Fetch company list.
Expand Down

0 comments on commit 2f221c0

Please sign in to comment.