aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/tools/anttasks/Fop.java3
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];