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

--- Comment #15 from Nick Burch <[email protected]> ---
(In reply to Jolteon from comment #13)
> (In reply to comment #12)
> 
> Now a minimal code that triggers the error :
> 
> Row row = _sheet.getRow(0);     // defined
> Cell orphaned = row.getCell(0); // defined
> Row row1 = _sheet.createRow(0); // we lose orphaned
> System.out.println(orphaned);   // we trigger the exception

You shouldn't be calling createRow for a row that already exists. I'm surprised
that it doesn't blow up earlier...

However, there does seem to be some logic in XSSFSheet for this case, which I
don't understand.

Does anyone know the use case for calling createRow with the index of a row
that already exists?

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to