diff --git a/Classes/Controller/PageViewController.php b/Classes/Controller/PageViewController.php index 1dd6bd808..93f909de5 100644 --- a/Classes/Controller/PageViewController.php +++ b/Classes/Controller/PageViewController.php @@ -320,7 +320,7 @@ protected function getMeasures(int $page, MetsDocument $specificDoc = null, $doc $measureCoordsFromCurrentSite = []; $measureCounterToMeasureId = []; $measureLinks = []; - $defaultFileId = $doc->physicalStructureInfo[$currentPhysId]['files']['DEFAULT']; + $defaultFileId = $doc->physicalStructureInfo[$currentPhysId]['files']['DEFAULT'] ?? null; if ($doc instanceof MetsDocument) { if (isset($defaultFileId)) { $musicalStruct = $doc->musicalStructureInfo;