diff options
author | Simon Pepping <spepping@apache.org> | 2007-01-02 20:18:24 +0000 |
---|---|---|
committer | Simon Pepping <spepping@apache.org> | 2007-01-02 20:18:24 +0000 |
commit | 6fe22dcc218f1b3c9a6f30ea6da73f3d3ede3e62 (patch) | |
tree | ee93ca32b0566e5fdc99f8e827a9a8221e5a1f23 | |
parent | e326fe83e30295b753e5bccae1a5bf74a7eb2ca9 (diff) | |
download | xmlgraphics-fop-6fe22dcc218f1b3c9a6f30ea6da73f3d3ede3e62.tar.gz xmlgraphics-fop-6fe22dcc218f1b3c9a6f30ea6da73f3d3ede3e62.zip |
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
-rw-r--r-- | src/java/org/apache/fop/tools/anttasks/Fop.java | 3 |
1 files changed, 3 insertions, 0 deletions
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]; |