Bug 58733 - New AIOOBE in getCell while iterating through a table in PPT
Summary: New AIOOBE in getCell while iterating through a table in PPT
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.14-dev
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-14 15:36 UTC by Tim Allison
Modified: 2015-12-14 22:55 UTC (History)
0 users



Attachments
File from govdocs1 (217.00 KB, application/vnd.ms-powerpoint)
2015-12-14 15:36 UTC, Tim Allison
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Allison 2015-12-14 15:36:46 UTC
Created attachment 33348 [details]
File from govdocs1

With 3.14-beta1-rc1, we're now getting 113 new exceptions out of ~7000 ppt files compared with 3.13-final.

java.lang.ArrayIndexOutOfBoundsException: 1
	at org.apache.poi.hslf.usermodel.HSLFTable.getCell(HSLFTable.java:125)
	at org.apache.poi.hslf.extractor.PowerPointExtractor.extractTableText(PowerPointExtractor.java:327)
	at org.apache.poi.hslf.extractor.PowerPointExtractor.getText(PowerPointExtractor.java:258)
	at org.apache.poi.hslf.extractor.PowerPointExtractor.getText(PowerPointExtractor.java:173)

Again, apologies for not an actual unit test:

                InputStream is = new FileInputStream(new File(dir, fName));
                PowerPointExtractor ex = new PowerPointExtractor(is);
                System.out.println(ex.getText());
Comment 1 Andreas Beeker 2015-12-14 22:55:18 UTC
fixed in r1720035

there was another issue with recognizing tables, this is also included in the 
fix