]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Readding the default format. This solves bug 41271.
authorSimon Pepping <spepping@apache.org>
Tue, 2 Jan 2007 20:18:24 +0000 (20:18 +0000)
committerSimon Pepping <spepping@apache.org>
Tue, 2 Jan 2007 20:18:24 +0000 (20:18 +0000)
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

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];