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

Uploading a roster with header row produces NPE #207

Open
s-edwards opened this issue Oct 6, 2021 · 0 comments
Open

Uploading a roster with header row produces NPE #207

s-edwards opened this issue Oct 6, 2021 · 0 comments

Comments

@s-edwards
Copy link
Member

If an uploaded roster (on the course home page, roster tab) includes a header row and you check the corresponding box, the code fails with:

undefined method `downcase' for nil:NilClass

The relevant stack trace:

/home/codeworkout/rails/releases/20210412123406/app/controllers/course_enrollments_controller.rb:55:in block in roster_upload' /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv/parser.rb:1078:in emit_row'
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv/parser.rb:827:in block in parse_quotable_loose' /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv/parser.rb:31:in block in each_line'
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv/parser.rb:28:in each_line' /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv/parser.rb:28:in each_line'
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv/parser.rb:779:in parse_quotable_loose' /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv/parser.rb:303:in parse'
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv.rb:1236:in each' /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv.rb:1236:in each'
/usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/csv.rb:681:in parse' /home/codeworkout/rails/releases/20210412123406/app/controllers/course_enrollments_controller.rb:38:in roster_upload'

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

1 participant