Author: sebb
Date: Thu Jun  7 21:14:22 2012
New Revision: 1347799

URL: http://svn.apache.org/viewvc?rev=1347799&view=rev
Log:
IO-334 FileUtils.toURLs throws NPE for null parameter
Documented the behaviour

Modified:
    commons/proper/io/trunk/src/changes/changes.xml
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

Modified: commons/proper/io/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/changes.xml?rev=1347799&r1=1347798&r2=1347799&view=diff
==============================================================================
--- commons/proper/io/trunk/src/changes/changes.xml (original)
+++ commons/proper/io/trunk/src/changes/changes.xml Thu Jun  7 21:14:22 2012
@@ -47,6 +47,10 @@ The <action> type attribute can be add,u
   <body>
     <!-- The release date is the date RC is cut -->
     <release version="2.4" date="2012-TDB-TDB" description="">
+      <action issue="IO-334" dev="sebb" type="fix">
+        FileUtils.toURLs throws NPE for null parameter.
+        Documented the behaviour.
+      </action>            
       <action issue="IO-333" dev="ggregory" type="add" due-to="fmeschbe">
         Export OSGi packages at version 1.x in addition to 2.x.
       </action>            

Modified: 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1347799&r1=1347798&r2=1347799&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
Thu Jun  7 21:14:22 2012
@@ -936,9 +936,10 @@ public class FileUtils {
      * <p>
      * Returns an array of the same size as the input.
      *
-     * @param files  the files to convert
+     * @param files  the files to convert, must not be {@code null}
      * @return an array of URLs matching the input
      * @throws IOException if a file cannot be converted
+     * @throws NullPointerException if the parameter is null
      */
     public static URL[] toURLs(File[] files) throws IOException {
         URL[] urls = new URL[files.length];


Reply via email to