Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProFormA XML import might fail #1183

Open
sentry-io bot opened this issue Jan 12, 2024 · 0 comments
Open

ProFormA XML import might fail #1183

sentry-io bot opened this issue Jan 12, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 12, 2024

Sentry Issue: CODEHARBOR-1M

NoMethodError: undefined method `[]' for nil:NilClass (NoMethodError)

      task = import_tasks.find {|task_hash| task_hash[:path] == subfile.with_indifferent_access[:path] }[:task]
                                                                                                        ^^^^^^^
  app/services/proforma_service/proforma_task_from_cached_file.rb:16:in `execute'
    task = import_tasks.find {|task_hash| task_hash[:path] == subfile.with_indifferent_access[:path] }[:task]
  app/services/service_base.rb:5:in `call'
    new(**).execute
  app/controllers/tasks_controller.rb:105:in `import_confirm'
    proforma_task = ProformaService::ProformaTaskFromCachedFile.call(**import_confirm_params.to_hash.symbolize_keys)
  app/controllers/application_controller.rb:104:in `switch_locale'
    I18n.with_locale(locale, &)
  app/controllers/application_controller.rb:92:in `mnemosyne_trace'
    yield
...
(100 additional frame(s) were not displayed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants