ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22065] New: - NullPointerException if user specifies "-Debug"
Date Fri, 01 Aug 2003 20:36:21 GMT
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=22065>.
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=22065

NullPointerException if user specifies "-Debug"

           Summary: NullPointerException if user specifies "-Debug"
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: Darin_Swanson@us.ibm.com


If the user mistakenly specifies "-Debug" instead of "-debug" you will get a 
NullPointerException.

The reason is in the parsing of -D properties at line 383 of 
Main.processArgs(String[]). The "-Debug" is incorrectly interpreted as a 
property with name "ebug" and a value of null.

And since the NullPointerException does not have a message, the user gets 
nothing printed to System.err (You might want to consider that if the message 
== null, do a Throwable.printStackTrace(System.err)? )

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


Mime
View raw message