maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r748860 - /maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java
Date Sat, 28 Feb 2009 14:42:22 GMT
Author: vsiveton
Date: Sat Feb 28 14:42:21 2009
New Revision: 748860

URL: http://svn.apache.org/viewvc?rev=748860&view=rev
Log:
MJAVADOC-220: ArrayIndexOutOfBoundsException in JavadocUtil.getIncludedFiles

o take care of excludeName.length

Modified:
    maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java

Modified: maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java?rev=748860&r1=748859&r2=748860&view=diff
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java
(original)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java
Sat Feb 28 14:42:21 2009
@@ -352,6 +352,11 @@
                 // handle wildcards (*) in the excludePackageNames
                 String[] excludeName = excludePackages[k].split( "[*]" );
 
+                if ( excludeName.length == 0 )
+                {
+                    continue;
+                }
+
                 if ( excludeName.length > 1 )
                 {
                     int u = 0;



Mime
View raw message