This is an automated email from the ASF dual-hosted git repository. hboutemy pushed a commit to annotated tag maven-ant-plugin-2.1 in repository https://gitbox.apache.org/repos/asf/maven-ant-plugin.git
commit daf94c9f806624daac8a6e97776c9561e439c2b7 Author: Brett Leslie Porter <br...@apache.org> AuthorDate: Mon Oct 29 08:43:13 2007 +0000 work around bug in old versions of xalan bundled in JDK 1.4.2 git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ant-plugin@589544 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/maven/plugin/ant/AntBuildWriterUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriterUtil.java b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriterUtil.java index 241655e..a2b24b7 100644 --- a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriterUtil.java +++ b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriterUtil.java @@ -1089,7 +1089,7 @@ public class AntBuildWriterUtil XObject obj = XPathAPI.eval( doc, "//configuration/" + optionName ); NodeList nodeList = obj.nodelist(); - if ( isList( nodeList.item( 0 ) ) ) + if ( nodeList.getLength() > 0 && isList( nodeList.item( 0 ) ) ) { /* * <optionNames> @@ -1182,7 +1182,6 @@ public class AntBuildWriterUtil } catch ( Exception e ) { - e.printStackTrace(); throw new IOException( "Exception occured: " + e.getMessage() ); } } -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.