ASF Bugzilla – Attachment 31331 Details for
Bug 55732
PPT can't open, fails with "Couldn't instantiate .... StyleTextProp9Atom : java.lang.ArrayIndexOutOfBoundsException: 56"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
suggested testcase
HeadersFootersTest.java (text/plain), 1.63 KB, created by
Marcel Pokrandt
on 2014-02-19 10:05:01 UTC
(
hide
)
Description:
suggested testcase
Filename:
MIME Type:
Creator:
Marcel Pokrandt
Created:
2014-02-19 10:05:01 UTC
Size:
1.63 KB
patch
obsolete
>package org.apache.poi.hslf.model; > >import java.io.File; >import java.io.FileInputStream; > >import org.apache.poi.hslf.HSLFSlideShow; >import org.apache.poi.hslf.usermodel.SlideShow; >import org.apache.poi.poifs.filesystem.DirectoryNode; >import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; >import org.junit.Test; > >public class HeadersFootersTest { > > @Test > public void test_isHeaderVisible() throws Exception { > File testFile = new File("test-data/document/HeadersFooters_Bug.ppt"); > DirectoryNode root = new NPOIFSFileSystem(new FileInputStream(testFile)).getRoot(); > > HSLFSlideShow ss = new HSLFSlideShow(root); > SlideShow _show = new SlideShow(ss); > Slide[] _slides = _show.getSlides(); > > /* Iterate over slides and extract text */ > for( Slide slide : _slides ) { > HeadersFooters hf = slide.getHeadersFooters(); > boolean visible = hf.isHeaderVisible(); // exception happens here > } > } > > @Test > public void test_isHeaderVisible2() throws Exception { > File testFile = new File("test-data/document/HeadersFooters_Bug2.ppt"); > DirectoryNode root = new NPOIFSFileSystem(new FileInputStream(testFile)).getRoot(); > > HSLFSlideShow ss = new HSLFSlideShow(root); > SlideShow _show = new SlideShow(ss); > Slide[] _slides = _show.getSlides(); > > /* Iterate over slides and extract text */ > for( Slide slide : _slides ) { > HeadersFooters hf = slide.getHeadersFooters(); > boolean visible = hf.isHeaderVisible(); // exception happens here > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 55732
:
31329
|
31330
| 31331