diff --git a/concrete/src/Page/Controller/MarketplaceDashboardPageController.php b/concrete/src/Page/Controller/MarketplaceDashboardPageController.php index 7425328e733..a27040181d0 100644 --- a/concrete/src/Page/Controller/MarketplaceDashboardPageController.php +++ b/concrete/src/Page/Controller/MarketplaceDashboardPageController.php @@ -20,7 +20,7 @@ public function view(): RedirectResponse $repository = $this->app->make(PackageRepositoryInterface::class); $coordinator = $this->app->make(PurchaseConnectionCoordinator::class); $connection = $repository->getConnection(); - if ($repository->validate($connection)) { + if ($connection !== null && $repository->validate($connection)) { // Redirect the url to the marketplace with a verified connection $url = $coordinator->createPurchaseConnectionUrl( $connection,