Author: markt Date: Mon Dec 11 16:53:55 2017 New Revision: 1817792 URL: http://svn.apache.org/viewvc?rev=1817792&view=rev Log: Remove unused code. This protection is not required in 7.0.x since the refactoring that triggered the issue has not be back-ported.
Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java?rev=1817792&r1=1817791&r2=1817792&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java (original) +++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java Mon Dec 11 16:53:55 2017 @@ -150,8 +150,6 @@ public class AsyncContextImpl implements public boolean timeout() { AtomicBoolean result = new AtomicBoolean(); request.getCoyoteRequest().action(ActionCode.ASYNC_TIMEOUT, result); - // Avoids NPEs during shutdown. A call to recycle will null this field. - Context context = this.context; if (result.get()) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org