From: Simon Pepping Date: Tue, 2 Jan 2007 20:18:24 +0000 (+0000) Subject: Readding the default format. This solves bug 41271. X-Git-Tag: fop-0_94~267 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6fe22dcc218f1b3c9a6f30ea6da73f3d3ede3e62;p=xmlgraphics-fop.git 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 --- 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];