|
|
@@ -38,11 +38,11 @@ class OrganizationCreationRequestProcessor implements ProcessorInterface
|
|
|
throw new \RuntimeException('not supported', Response::HTTP_METHOD_NOT_ALLOWED);
|
|
|
}
|
|
|
|
|
|
- /** @var Access $access */
|
|
|
+ /** @var Access|null $access */
|
|
|
$access = $this->security->getUser();
|
|
|
|
|
|
$organizationCreationRequest->setCreationDate(DatesUtils::new());
|
|
|
- $organizationCreationRequest->setAuthorId($access->getId());
|
|
|
+ $organizationCreationRequest->setAuthorId($access?->getId());
|
|
|
|
|
|
if ($organizationCreationRequest->isAsync()) {
|
|
|
// Send the export request to Messenger (@see App\Message\Handler\OrganizationCreationHandler)
|