tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session StandardSession.java
Date Wed, 15 Jun 2005 23:41:25 GMT
luehe       2005/06/15 16:41:25

  Modified:    catalina/src/share/org/apache/catalina/session
                        StandardSession.java
  Log:
  After deserializing a StandardSession, reinit its transient
  "listeners" and "notes" fields, to prevent NPEs when they are
  accessed.
  
  Revision  Changes    Path
  1.58      +8 -1      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java
  
  Index: StandardSession.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- StandardSession.java	31 Mar 2005 10:31:53 -0000	1.57
  +++ StandardSession.java	15 Jun 2005 23:41:25 -0000	1.58
  @@ -1393,6 +1393,13 @@
           }
           isValid = isValidSave;
   
  +        if (listeners == null) {
  +            listeners = new ArrayList();
  +        }
  +
  +        if (notes == null) {
  +            notes = new HashMap();
  +        }
       }
   
   
  
  
  

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


Mime
View raw message