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

Certain .xlsx files cause a crash #110

Closed
janis-grigaluns opened this issue Feb 17, 2014 · 0 comments
Closed

Certain .xlsx files cause a crash #110

janis-grigaluns opened this issue Feb 17, 2014 · 0 comments

Comments

@janis-grigaluns
Copy link

An .xlsx file with a single worksheet causes a crash with error message

undefined method `xpath' for nil:NilClass in [GEM_ROOT]/gems/roo-1.10.1/lib/roo/excelx.rb on line 459

The file is created by Numbers 3.1. I tracked down the issue to the way Excelx parses worksheet filenames - this is the quick fix I've come up with: janis-grigaluns@32eab32 .

Example .xlsx file.

sidonath added a commit to sidonath/roo that referenced this issue Mar 4, 2014
Numbers 3.1 can export .xlsx files, but the feature has some
incensistencies and bugs.

This commit fixes an inconsistency where the first sheet doesn't have
have an index in the XML filename ("sheet.xml"), whereas such sheet
would be named "sheet1.xml" by Excel.

This fix is inspired by a solution provided in roo-rb#110.
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