From fec95ada84116b3e29672c8d863604874bf49550 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 14 Jun 2006 07:54:01 +0000 Subject: [PATCH] Bugzilla #39809: 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/tools/anttasks/Fop.java b/src/java/org/apache/fop/tools/anttasks/Fop.java index 895230d27..0634c0407 100644 --- a/src/java/org/apache/fop/tools/anttasks/Fop.java +++ b/src/java/org/apache/fop/tools/anttasks/Fop.java @@ -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 = { -- 2.39.5