diff --git a/app/services/hyrax/indexes_thumbnails_decorator.rb b/app/services/hyrax/indexes_thumbnails_decorator.rb index d63983048..8a0be6306 100644 --- a/app/services/hyrax/indexes_thumbnails_decorator.rb +++ b/app/services/hyrax/indexes_thumbnails_decorator.rb @@ -10,7 +10,7 @@ def thumbnail_path if object.try(:collection?) && UploadedCollectionThumbnailPathService.uploaded_thumbnail?(object) UploadedCollectionThumbnailPathService.call(object) else - CollectionResourceIndexer.thumbnail_path_service.call(object).gsub('/app/samvera', '') + CollectionResourceIndexer.thumbnail_path_service.call(object)&.gsub('/app/samvera', '') end end end