You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/11/04 17:53:28 UTC

DO NOT REPLY [Bug 14232] New: - Possible NullPointerException in Diagnositcs#doReport(PrintStream)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14232>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14232

Possible NullPointerException in Diagnositcs#doReport(PrintStream)

           Summary: Possible NullPointerException in
                    Diagnositcs#doReport(PrintStream)
           Product: Ant
           Version: 1.5.1
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: darin_swanson@oti.com


I am working with Ant 1.5.1 within Eclipse.
Within Eclipse it is possible to be using Ant without ANT_HOME set.

Diagnostics#listLibraries() throws a NullPointerException if ANT_HOME is not 
set.  The NPE occurs as the java.io.File#list call returns null.

I would propose that Diagnostics#listLibraries should handle this case. The 
comment claims the method will return null in error conditions but 
Diagnostics#doReportLibraries will not handle this return value.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>