Hi, Same issue as #164 and #400, still happens on 3.0.0.
I've attached an example file, a valid xlsx, that causes the problem: empty_sheet.xlsx
reproduce with:
sheet = Roo::Spreadsheet.open("empty_sheet.xlsx", extension: ".xlsx").sheet(0)
sheet.first #=> ArgumentError: comparison of Integer with nil
failed
Happens because last_row is nil and 1.upto(nil) blows up in base.rb:286.
I think it should return zero instead (?)
Hi, Same issue as #164 and #400, still happens on 3.0.0.
I've attached an example file, a valid xlsx, that causes the problem: empty_sheet.xlsx
reproduce with:
Happens because
last_rowis nil and1.upto(nil)blows up inbase.rb:286.I think it should return zero instead (?)