https://issues.apache.org/bugzilla/show_bug.cgi?id=47245

Triqui <pedro.t.gar...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #5 from Triqui <pedro.t.gar...@gmail.com> ---
Commenting these lines fixes the issue (as has already been stated):

//   if (rowRecordsAlreadyPresent) {
//      // if at least one row record is present, all should be present.
//      throw new RuntimeException("Unexpected missing row when some rows
already present");
//   }

The question is that I don't see the reason why if one row record is present,
all should be.

Cells already contain row and column indexes, so creating the missing rows
should be no problem, and if there's a conflict between an existing row record
and a row record created internally from an existing cell, probably the
exception should be thrown from HSSFRow.createCellFromRecord or HSSFRow.addCell
if the cell being added already exist.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to