hgomez 2004/04/05 23:59:54 Modified: coyote/src/java/org/apache/coyote RequestInfo.java Log: Avoid NPE.
It appears at the end of some stress tests. Revision Changes Path 1.9 +4 -2 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestInfo.java Index: RequestInfo.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestInfo.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- RequestInfo.java 24 Feb 2004 08:54:29 -0000 1.8 +++ RequestInfo.java 6 Apr 2004 06:59:54 -0000 1.9 @@ -49,8 +49,10 @@ this.global=global; global.addRequestProcessor( this ); } else { - this.global.removeRequestProcessor( this ); - this.global = null; + if (this.global != null) { + this.global.removeRequestProcessor( this ); + this.global = null; + } } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]