Skip to content

Commit 92fe6eb

Browse files
committed
BUGFIX: Prevent crash when SecurityContext has no Account
1 parent f20b7b6 commit 92fe6eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/ContentReleaseManager.php

Lines changed: 1 addition & 1 deletion
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)