datacite / lupo

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

NoMethodError: private method `select' called for nil:NilClass #1058

Closed sentry-io[bot] closed 12 months ago

sentry-io[bot] commented 12 months ago

Sentry Issue: LUPO-33R

NoMethodError: private method `select' called for nil:NilClass
  app/models/doi/indexer/related_doi_indexer.rb:11:in `related_dois'
    @related_dois ||= @related_identifiers.select { |r| r["relatedIdentifierType"] == "DOI" }
  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|
  app/models/doi/indexer/related_doi_indexer.rb:37:in `as_indexed_json'
    rtypes = relation_types_gouped_by_id
  app/models/doi.rb:1686:in `related_dois'
    Doi::Indexer::RelatedDoiIndexer.new(related_identifiers).as_indexed_json
...
(81 additional frame(s) were not displayed)