]> source.dussan.org Git - poi.git/commitdiff
Nullpointer fix for slideshow extractor
authorAndreas Beeker <kiwiwings@apache.org>
Thu, 19 Apr 2018 13:34:52 +0000 (13:34 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Thu, 19 Apr 2018 13:34:52 +0000 (13:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1829538 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/sl/extractor/SlideShowExtractor.java

index 44f0df19c34c84afc3e5a6deda45a8df30535589..bf234f9d635853b0e2494e8a55a6224ef823c590 100644 (file)
@@ -152,7 +152,7 @@ public class SlideShowExtractor<
                 }
                 final TextShape<S, P> ts = (TextShape<S, P>) s;
                 final PlaceholderDetails pd = ts.getPlaceholderDetails();
-                if (pd == null || !pd.isVisible()) {
+                if (pd == null || !pd.isVisible() || pd.getPlaceholder() == null) {
                     continue;
                 }
                 switch (pd.getPlaceholder()) {