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=29688>. 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=29688 HostConfig NullPointerException Summary: HostConfig NullPointerException Product: Tomcat 5 Version: 5.0.25 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following Exception was thrown: java.lang.NullPointerException at org.apache.catalina.startup.HostConfig.deployDescriptors (HostConfig.java:490) A first analyse of source code: protected void deployDescriptors(File configBase, String[] files) the "files[]" parameter might be null, but is not tested on null in body of method. The calling functions also don't check for a null array. Simple solution would be: use: protected void deployDescriptors(File configBase, String[] files) { if (!deployXML || files==null) return; [...] instead of: protected void deployDescriptors(File configBase, String[] files) { if (!deployXML) return; [...] In all cases i found the calling methods use the File.list() mtehod to create array without check, but according to J2SE API Doc "null" is allowed as return value of "list()", so a check might make sense. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]