diff --git a/modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php b/modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php index c58e7006..86090ff1 100644 --- a/modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php +++ b/modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php @@ -107,7 +107,8 @@ class IslandoraBreadcrumbBuilder implements BreadcrumbBuilderInterface { // Find the next in the chain, if there are any. if ($entity->hasField($this->config->get('referenceField')) && - !$entity->get($this->config->get('referenceField'))->isEmpty()) { + !$entity->get($this->config->get('referenceField'))->isEmpty() && + $entity->get($this->config->get('referenceField'))->entity instanceof EntityInterface) { $this->walkMembership($entity->get($this->config->get('referenceField'))->entity, $crumbs); } }