From: Simon Pepping Date: Wed, 3 Jan 2007 20:25:23 +0000 (+0000) Subject: Re-adding the default format. This solves bug 41271. Ported change X-Git-Tag: fop-0_93^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f418918e1ddb4fb80c8039e76da0f7e68705ed56;p=xmlgraphics-fop.git Re-adding the default format. This solves bug 41271. Ported change r491926 from trunk. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_93@492283 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];