Skip to content

Commit

Permalink
[BUGFIX] Catch $doc == NULL
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jan 5, 2025
1 parent cfd701f commit eebe372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Command/IndexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private function getDocumentFromUrl($doc, string $url): Document
{
$document = null;

if ($doc->recordId) {
if ($doc and $doc->recordId) {
$document = $this->documentRepository->findOneByRecordId($doc->recordId);
} else {
$document = $this->documentRepository->findOneByLocation($url);
Expand Down

0 comments on commit eebe372

Please sign in to comment.