datacite / lupo

DataCite REST API
https://api.datacite.org
MIT License
12 stars 8 forks source link

NoMethodError: undefined method `downcase' for nil:NilClass #1067

Closed sentry-io[bot] closed 11 months ago

sentry-io[bot] commented 11 months ago

Sentry Issue: LUPO-33S

NoMethodError: undefined method `downcase' for nil:NilClass
  app/models/doi/indexer/related_doi_indexer.rb:15:in `block in related_grouped_by_id'
    related_dois.group_by { |r| r["relatedIdentifier"].downcase }
  app/models/doi/indexer/related_doi_indexer.rb:15:in `each'
    related_dois.group_by { |r| r["relatedIdentifier"].downcase }
  app/models/doi/indexer/related_doi_indexer.rb:15:in `group_by'
    related_dois.group_by { |r| r["relatedIdentifier"].downcase }
  app/models/doi/indexer/related_doi_indexer.rb:15:in `related_grouped_by_id'
    related_dois.group_by { |r| r["relatedIdentifier"].downcase }
  app/models/doi/indexer/related_doi_indexer.rb:19:in `relation_types_gouped_by_id'
    related_grouped_by_id.transform_values do |values|
...
(83 additional frame(s) were not displayed)