summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-09-03 19:26:33 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-09-03 19:26:33 +0000
commit33bc915578fe7bd059800d5ec77b803cd9f63e35 (patch)
tree399c0a8278a822e1d08585c527c99d6ea37c8e64 /src
parentea43beeba71a7dd6a12bfb1bc1bcaec7a07d443f (diff)
downloadpoi-33bc915578fe7bd059800d5ec77b803cd9f63e35.tar.gz
poi-33bc915578fe7bd059800d5ec77b803cd9f63e35.zip
PPTXPNG - parent directory of relative input file was null
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881418 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java b/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java
index c9336b26c9..ff0d4e7d8a 100644
--- a/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java
+++ b/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java
@@ -213,7 +213,7 @@ public final class PPTX2PNG {
usage("When reading from STDIN, you need to specify an outdir.");
return false;
} else {
- outdir = file.getParentFile();
+ outdir = file.getAbsoluteFile().getParentFile();
}
}
if (!outdir.exists()) {