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

NoMethodError: undefined method `gsub' for nil:NilClass for links in csv formatter #569

Open
shcyiza opened this issue Dec 22, 2021 · 0 comments

Comments

@shcyiza
Copy link

shcyiza commented Dec 22, 2021

Issue

While parsing a file converting xlsx file to CSV I came accros this error:
NoMethodError: undefined method 'gsub' for nil:NilClass
/gems/ruby/2.7.0/gems/roo-2.8.3/lib/roo/formatters/csv.rb:77:in 'cell_to_csv'
I cannot share the file for privacy reason unfortunately but it looks like it's an easy fix.

It seems that unlike the formatter for strings, the links part of the code is not nil safe.
location: /lib/roo/formatters/csv.rb:77:in `cell_to_csv'
change proposal here: master...shcyiza:patch-1

System configuration

Roo version: 2.8.3

Ruby version: 2.7.2p137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant