diff --git a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php index 6afae2499..86389c0d8 100644 --- a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php +++ b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php @@ -711,7 +711,8 @@ public function submitOptionsForm(&$form, FormStateInterface $form_state) { protected function getStructuredTextTerm() : ?TermInterface { if (!$this->structuredTextTermMemoized) { $this->structuredTextTermMemoized = TRUE; - $this->structuredTextTerm = $this->utils->getTermForUri($this->options['structured_text_term_uri']); + $uri = $this->options['structured_text_term_uri'] ?? NULL; + $this->structuredTextTerm = $uri ? $this->utils->getTermForUri($uri) : NULL; } return $this->structuredTextTerm;