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

Dominik Stadler <dominik.stad...@gmx.at> changed:

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

--- Comment #5 from Dominik Stadler <dominik.stad...@gmx.at> ---
Thanks, I have started to apply this locally to get some testing done before
submitting. 

I saw that the error message for rows without group are ugly and don't give the
developer a way to know what the actual problem is. 

Exception in thread "main" java.lang.IllegalArgumentException: Invalid row
number (-1) outside allowable range (0..1048575)
    at org.apache.poi.xssf.streaming.SXSSFSheet.createRow(SXSSFSheet.java:91)
    at
org.apache.poi.xssf.streaming.SXSSFSheet.collapseRow(SXSSFSheet.java:1154)
    at
org.apache.poi.xssf.streaming.SXSSFSheet.setRowGroupCollapsed(SXSSFSheet.java:1133)
    at
org.apache.poi.xssf.streaming.examples.Outlining.collapseRow(Outlining.java:44)
    at org.apache.poi.xssf.streaming.examples.Outlining.main(Outlining.java:29)

This is obviously a side-effect of trying to create a row, why is this
row-creating done anyway in this case?

Any way we can improve error checking here and throw an error message with
better indication of what the problem is instead of this trying to create a row
at an invalid location?

-- 
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