xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spepp...@apache.org
Subject svn commit: r492283 - /xmlgraphics/fop/branches/fop-0_93/src/java/org/apache/fop/tools/anttasks/Fop.java
Date Wed, 03 Jan 2007 20:25:24 GMT
Author: spepping
Date: Wed Jan  3 12:25:23 2007
New Revision: 492283

URL: http://svn.apache.org/viewvc?view=rev&rev=492283
Log:
Re-adding the default format. This solves bug 41271. Ported change
r491926 from trunk.

Modified:
    xmlgraphics/fop/branches/fop-0_93/src/java/org/apache/fop/tools/anttasks/Fop.java

Modified: xmlgraphics/fop/branches/fop-0_93/src/java/org/apache/fop/tools/anttasks/Fop.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/fop-0_93/src/java/org/apache/fop/tools/anttasks/Fop.java?view=diff&rev=492283&r1=492282&r2=492283
==============================================================================
--- xmlgraphics/fop/branches/fop-0_93/src/java/org/apache/fop/tools/anttasks/Fop.java (original)
+++ xmlgraphics/fop/branches/fop-0_93/src/java/org/apache/fop/tools/anttasks/Fop.java Wed
Jan  3 12:25:23 2007
@@ -360,6 +360,9 @@
     };
 
     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];



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message