https://issues.apache.org/bugzilla/show_bug.cgi?id=51162

--- Comment #3 from Konstantin Kolinko <knst.koli...@gmail.com> 2011-05-10 
06:51:50 UTC ---
> I have proposed some NPE protection

Regarding the proposed Tomcat 6 patch (backport of r943112):

It is good per se, for any Container.removeChild() call, but won't be enough
here.

> java.lang.NullPointerException
>    at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:923)
>    at
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1212)

The patch will cure the removeChild(null) call at HostConfig.java:1212, but
several lines later (1218) there is context.destroy() call that will result in
the same NPE. This is specific to TC6, as trunk does not call destroy() there.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to