]> source.dussan.org Git - poi.git/commitdiff
PPTXPNG - parent directory of relative input file was null
authorAndreas Beeker <kiwiwings@apache.org>
Thu, 3 Sep 2020 19:26:33 +0000 (19:26 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Thu, 3 Sep 2020 19:26:33 +0000 (19:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881418 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java

index c9336b26c9db2c8518bc8be642a828b487fd389d..ff0d4e7d8ae7cbd0359bf55a26c5f95d44102781 100644 (file)
@@ -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()) {