From 6fe22dcc218f1b3c9a6f30ea6da73f3d3ede3e62 Mon Sep 17 00:00:00 2001 From: Simon Pepping Date: Tue, 2 Jan 2007 20:18:24 +0000 Subject: [PATCH] Readding the default format. This solves bug 41271. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@491926 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/tools/anttasks/Fop.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java/org/apache/fop/tools/anttasks/Fop.java b/src/java/org/apache/fop/tools/anttasks/Fop.java index 7514a790f..2010c372e 100644 --- a/src/java/org/apache/fop/tools/anttasks/Fop.java +++ b/src/java/org/apache/fop/tools/anttasks/Fop.java @@ -360,6 +360,9 @@ class FOPTaskStarter { }; private String normalizeOutputFormat(String format) { + if (format == null) { + return MimeConstants.MIME_PDF; + } for (int i = 0; i < SHORT_NAMES.length; i++) { if (SHORT_NAMES[i][0].equals(format)) { return SHORT_NAMES[i][1]; -- 2.39.5