Skip to content

Commit f75bdb8

Browse files
authored
Merge pull request #30 from Flowpack/bugfix-no-account-found-in-security-context-causes-crash
BUGFIX: Prevent crash when SecurityContext has no Account
2 parents f20b7b6 + 92fe6eb commit f75bdb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/ContentReleaseManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private function resolveCurrentContentReleaseId(?string $currentContentReleaseId
144144

145145
private function getAccountId(): ?string
146146
{
147-
if ($this->securityContext->isInitialized()) {
147+
if ($this->securityContext->isInitialized() && !is_null($this->securityContext->getAccount())) {
148148
return $this->securityContext->getAccount()->getAccountIdentifier();
149149
}
150150

0 commit comments

Comments
 (0)