Bug 40956 - ClassCastException in method buildSlidesAndNotes of class SlideShow
Summary: ClassCastException in method buildSlidesAndNotes of class SlideShow
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 regression (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2006-11-13 06:03 UTC by Erez
Modified: 2006-12-14 03:56 UTC (History)
0 users

an example (228.50 KB, application/vnd.ms-powerpoint)
2006-11-13 06:05 UTC, Erez

Note You need to log in before you can comment on or make changes to this bug.
Description Erez 2006-11-13 06:03:17 UTC
class java.lang.ClassCastException - org.apache.poi.hslf.record.Slide
java.lang.ClassCastException: org.apache.poi.hslf.record.Slide
        at org.apache.poi.hslf.usermodel.SlideShow.buildSlidesAndNotes
        at org.apache.poi.hslf.usermodel.SlideShow.<init>(SlideShow.java:116)

This happens when I try to instantiate a new HSLFSlideShow:
HSLFSlideShow pptSlideShow = new HSLFSlideShow(fileName)
Comment 1 Erez 2006-11-13 06:05:49 UTC
Created attachment 19119 [details]
an example
Comment 2 Nick Burch 2006-12-14 03:56:20 UTC
This will now throw a CorruptPowerPointFileException

Details on why it was doing this, and what (if anything) we might be able to do
better in the future are over in bug #41776.