From: markt Date: Thu, 17 Feb 2011 13:10:36 +0000 (+0000) Subject: Fix NPEs on shutdown. Loop is prevented above when the child is removed. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5aa18bc8000494d01710bc40deba8d187a8950e3;p=tomcat7.0 Fix NPEs on shutdown. Loop is prevented above when the child is removed. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1071601 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/core/ContainerBase.java b/java/org/apache/catalina/core/ContainerBase.java index 14d920675..a2e6200fc 100644 --- a/java/org/apache/catalina/core/ContainerBase.java +++ b/java/org/apache/catalina/core/ContainerBase.java @@ -959,8 +959,6 @@ public abstract class ContainerBase extends LifecycleMBeanBase fireContainerEvent(REMOVE_CHILD_EVENT, child); - // Set child's parent to null to prevent a loop - child.setParent(null); try { // child.destroy() may have already been called which would have // triggered this call. If that is the case, no need to destroy the