]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Re-adding the default format. This solves bug 41271. Ported change
authorSimon Pepping <spepping@apache.org>
Wed, 3 Jan 2007 20:25:23 +0000 (20:25 +0000)
committerSimon Pepping <spepping@apache.org>
Wed, 3 Jan 2007 20:25:23 +0000 (20:25 +0000)
r491926 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_93@492283 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/tools/anttasks/Fop.java

index 7514a790f2d0622bbe55e712f669a4de61124a3e..2010c372e91c351bc0e324980878d4d43a041907 100644 (file)
@@ -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];