commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29140] New: - NPE in FileUtils.listFiles(dir, extensions, recursive)
Date Fri, 21 May 2004 14:13:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29140>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29140

NPE in FileUtils.listFiles(dir, extensions, recursive)

           Summary: NPE in FileUtils.listFiles(dir, extensions, recursive)
           Product: Commons
           Version: 1.0 Final
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: IO
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ThorstenMoeller@web.de


Calling this method with dir="c:\\" with recursion set to true on a Windows XP 
system with NTFS partition produces NPE (debugger told line 145). I think the 
problem is when the method reaches dirs which the user has no permission to 
read, for instance "c:\System Volume Information".
Maybe file.canRead() should be added somewhere before trying to go one step 
deeper in directory tree.

Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message