]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #39809:
authorJeremias Maerki <jeremias@apache.org>
Wed, 14 Jun 2006 07:54:01 +0000 (07:54 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 14 Jun 2006 07:54:01 +0000 (07:54 +0000)
Fixed NullPointerException when there's no user configuration file for the FOP Ant task.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@414137 13f79535-47bb-0310-9956-ffa450edef68

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

index 895230d277757c0bd6dbf87aa1d3e1db94b64f45..0634c040746e6977fdb00f7f85dcc0b8a3d96616 100644 (file)
@@ -338,7 +338,9 @@ class FOPTaskStarter {
 
     FOPTaskStarter(Fop task) throws SAXException, IOException {
         this.task = task;
-        fopFactory.setUserConfig(task.getUserconfig());
+        if (task.getUserconfig() != null) {
+            fopFactory.setUserConfig(task.getUserconfig());
+        }
     }
 
     private static final String[][] SHORT_NAMES = {