https://issues.apache.org/bugzilla/show_bug.cgi?id=50319
Summary: Creating a group row for the first row and calling
setRowGroupCollapsed causes IllegalArgumentException.
Product: POI
Version: 3.7
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Creating a group with just the first row, and then collapse the group causes an
exception.
Sample Code:
sheet.groupRow(0, 0);
sheet.setRowGroupCollapsed(0, true);
Exception:
Caused by: java.lang.IllegalArgumentException: The row number must be between 0
and 65535
at
org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.getRow(RowRecordsAggregate.java:149)
at
org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.findStartOfRowOutlineGroup(RowRecordsAggregate.java:301)
at
org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.collapseRow(RowRecordsAggregate.java:343)
at
org.apache.poi.hssf.usermodel.HSSFSheet.setRowGroupCollapsed(HSSFSheet.java:1701)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]