mirror of
https://github.com/apache/poi.git
synced 2025-03-09 03:02:47 +00:00
add null check for XSLFShape
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868318 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1f6a3c99ae
commit
e81a348864
@ -83,6 +83,14 @@ public class TestXSLFShape {
|
||||
ppt.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testProblemFile() throws IOException {
|
||||
try (XMLSlideShow ppt = XSLFTestDataSamples.openSampleDocument("ececapstonespring2012.pptx")) {
|
||||
List<XSLFSlide> slides = ppt.getSlides();
|
||||
assertEquals(24, slides.size());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateShapes() throws IOException {
|
||||
XMLSlideShow ppt = new XMLSlideShow();
|
||||
|
BIN
test-data/slideshow/ececapstonespring2012.pptx
Normal file
BIN
test-data/slideshow/ececapstonespring2012.pptx
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user