mirror of https://github.com/apache/poi.git
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();
|
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
|
@Test
|
||||||
public void testCreateShapes() throws IOException {
|
public void testCreateShapes() throws IOException {
|
||||||
XMLSlideShow ppt = new XMLSlideShow();
|
XMLSlideShow ppt = new XMLSlideShow();
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue