Skip to content

Commit

Permalink
Merge pull request #16 from discoverygarden/adam-vessey-patch-1
Browse files Browse the repository at this point in the history
SUPM-866: Update HOCRField.php
  • Loading branch information
nchiasson-dgi committed Jul 11, 2024
2 parents f331e37 + 1128f0a commit 7fe3cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/search_api/processor/HOCRField.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function getFile(NodeInterface $node) : ?FileInterface {
/** @var \Drupal\file\FileInterface $file */
$file = $this->entityTypeManager->getStorage('file')->load($fid);

if (!$file->access('view', $anonymous, FALSE)) {
if (!$file || !$file->access('view', $anonymous, FALSE)) {
continue;
}

Expand Down

0 comments on commit 7fe3cec

Please sign in to comment.