Skip to content

Error: Call to a member function getEmail() on null when reading settings

Sentry Issue: ENGINE-26

Error: Call to a member function getEmail() on null
  File "/Controllers/api/v2/settings/emails.php", line 41, in Minds\Controllers\Api\v2\settings\emails::get
    'email' => $user->getEmail(),
  File "/Api/Factory.php", line 70, in Minds\Api\Factory::build
    return $handler->$method($pages);
  File "/Controllers/api/api.php", line 76, in Minds\Controllers\api\api::get
    return Factory::build($pages, $this->request, $this->response);
  File "/Core/Router.php", line 138, in Minds\Core\Router::route
    return $handler->$method($pages);
  File "/index.php", line 9
    $router->route();