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=4184>.
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=4184

boolean error in org.apache.velocity.runtime.log.LogManager.createLogSystem()





------- Additional Comments From [EMAIL PROTECTED]  2001-10-16 07:02 -------
Steps to reproduce: 

If the velocity.properties file is not found or if the file is found but the 
property:
runtime.log.logsystem.class = org.apache.velocity.runtime.log.AvalonLogSystem
is not present or is null then the code in:

org.apache.velocity.runtime.log.LogManager.createLogSystem():

// BEGIN CODE SNIPPET

 String claz = (String) rsvc.getProperty( 
            RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS );
 if (claz != null || claz.length() > 0 ) {

   // ...
// END CODE SNIPPET
fails, since claz is null and the || evaluates the second argument.

Matt

Reply via email to