From 33bc915578fe7bd059800d5ec77b803cd9f63e35 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Thu, 3 Sep 2020 19:26:33 +0000 Subject: [PATCH] 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 --- src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {