poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 47245] HSSFSheet - RuntimeException: Unexpected missing row
Date Thu, 11 Oct 2012 10:22:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47245

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

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

--- Comment #5 from Triqui <pedro.t.garcia@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-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message