commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-334) FileUtils.toURLs throws NPE for null parameter; this is inconsistent with toFiles method behaviour
Date Thu, 07 Jun 2012 12:06:23 GMT
Sebb created IO-334:
-----------------------

             Summary: FileUtils.toURLs throws NPE for null parameter; this is inconsistent
with toFiles method behaviour
                 Key: IO-334
                 URL: https://issues.apache.org/jira/browse/IO-334
             Project: Commons IO
          Issue Type: Bug
            Reporter: Sebb
            Priority: Trivial


The toFiles method treats null input the same as an empty array, however the toURLs method
throws NPE for null input.

This is inconsistent.

The Javadoc for toURLs does not specify the behaviour for null input.

Either the method should be fixed to treat null as an empty array, or the NPE should be documented.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message