aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2018-04-19 13:34:52 +0000
committerAndreas Beeker <kiwiwings@apache.org>2018-04-19 13:34:52 +0000
commita125fb97b5705a26068d7342eead67cef0470bf0 (patch)
treeece20e3a37b674ed498eb725617ef2bbd3fb2a81 /src/java
parent518d8caceb2154933be04f78686550a9ef07c006 (diff)
downloadpoi-a125fb97b5705a26068d7342eead67cef0470bf0.tar.gz
poi-a125fb97b5705a26068d7342eead67cef0470bf0.zip
Nullpointer fix for slideshow extractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1829538 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/sl/extractor/SlideShowExtractor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/sl/extractor/SlideShowExtractor.java b/src/java/org/apache/poi/sl/extractor/SlideShowExtractor.java
index 44f0df19c3..bf234f9d63 100644
--- a/src/java/org/apache/poi/sl/extractor/SlideShowExtractor.java
+++ b/src/java/org/apache/poi/sl/extractor/SlideShowExtractor.java
@@ -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()) {