randym/axlsx — Issue #14: Bug using .merge_cells ws.rows[i].cells
Author: dkmdnielsen
Created: 2012-01-11 19:16:30+00:00
State: open

Given the following two statements:

```ruby
ws.merge_cells "A1:C1"
ws.merge_cells ws.rows[i].cells[(1..3)]
```

Both statement reference the same row of cells. The first statement executes fine, no problems. The second statement raises the following exception if any of the referenced cell values is nil (empty cell).

```ruby
NoMethodError: undefined method `r' for nil:NilClass
C:/Ruby/lib/ruby/gems/1.8/gems/axlsx-1.0.14/lib/axlsx/workbook/worksheet/worksheet.rb:68:in `merge_cells'
```

Have a good one