https://issues.apache.org/bugzilla/show_bug.cgi?id=45889
Summary: getShapes() brings error if count of table rows = 1
Product: POI
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P1
Component: HSLF
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
current trunk code.
test snippet:
SlideShow ppt = new SlideShow();
Slide slide = ppt.createSlide();
slide.addShape(new Table(1, 5));
Shape[] shapes = slide.getShapes();
error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.poi.hslf.model.Table.initTable(Table.java:180)
at org.apache.poi.hslf.model.Table.setSheet(Table.java:193)
at org.apache.poi.hslf.model.Sheet.getShapes(Sheet.java:229)
at JustPOI.main(JustPOI.java:33)
--
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]