sul-dlss / stacks

Delivering digital resources to patrons.
http://stacks.stanford.edu
5 stars 2 forks source link

[Stacks/prod] NoMethodError: undefined method `lazy' for nil:NilClass #1144

Open honeybadger[bot] opened 5 months ago

honeybadger[bot] commented 5 months ago

Backtrace

line 122 of [PROJECT_ROOT]/app/models/stacks_rights.rb: find_file
line 117 of [PROJECT_ROOT]/app/models/stacks_rights.rb: cocina_file
line 107 of [PROJECT_ROOT]/app/models/stacks_rights.rb: cocina_rights

View full backtrace and more info at honeybadger.io

jcoyne commented 5 months ago

This is caused by trying to retrieve a file from a Collection (which have no files)