datacite / bolognese

Ruby gem and command-line utility for conversion of DOI metadata
MIT License
40 stars 14 forks source link

NoMethodError: undefined method `strip' for nil:NilClass #180

Closed sentry-io[bot] closed 11 months ago

sentry-io[bot] commented 11 months ago

Sentry Issue: LUPO-2Y1

NoMethodError: undefined method `strip' for nil:NilClass
  app/models/concerns/crosscitable.rb:53:in `parse_xml'
    send(
  app/lib/params_sanitizer.rb:448:in `generate_meta'
    xml.present? ? parse_xml(xml, doi: @params[:doi]) : {}
  app/lib/params_sanitizer.rb:277:in `cleanse'
    meta = generate_meta(xml)
  app/controllers/datacite_dois_controller.rb:816:in `sanitized_params'
    ParamsSanitizer.new(safe_params.to_h).cleanse
  app/controllers/datacite_dois_controller.rb:511:in `validate'
    @doi = DataciteDoi.new(sanitized_params.merge(only_validate: true))
...
(76 additional frame(s) were not displayed)