diff options
author | PJ Fanning <fanningpj@apache.org> | 2019-10-12 07:30:56 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2019-10-12 07:30:56 +0000 |
commit | e81a348864855fa336826692abdbcff8e4c836e8 (patch) | |
tree | 0f25a55546a2141e306ded5fa93390102afb39bc /src/ooxml/testcases/org/apache/poi | |
parent | 1f6a3c99aeedc60647b8aefcc6d2ee42e9b44bbf (diff) | |
download | poi-e81a348864855fa336826692abdbcff8e4c836e8.tar.gz poi-e81a348864855fa336826692abdbcff8e4c836e8.zip |
add null check for XSLFShape
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868318 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFShape.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFShape.java b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFShape.java index 346e98922b..65ad0cace5 100644 --- a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFShape.java +++ b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFShape.java @@ -84,6 +84,14 @@ public class TestXSLFShape { } @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(); XSLFSlide slide = ppt.createSlide(); |