tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r465195 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/session/StandardSession.java
Date Wed, 18 Oct 2006 10:13:29 GMT
Author: remm
Date: Wed Oct 18 03:13:28 2006
New Revision: 465195

URL: http://svn.apache.org/viewvc?view=rev&rev=465195
Log:
- Fix NPE on isValid for an expired session when activity check is enabled.

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/session/StandardSession.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/session/StandardSession.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/session/StandardSession.java?view=diff&rev=465195&r1=465194&r2=465195
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/session/StandardSession.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/session/StandardSession.java Wed Oct 18
03:13:28 2006
@@ -710,7 +710,9 @@
                     }
                 }
             }
-            accessCount = null;
+            if (ACTIVITY_CHECK) {
+                accessCount.set(0);
+            }
             setValid(false);
 
             /*



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


Mime
View raw message