tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime PageContextImpl.java
Date Tue, 06 Aug 2002 05:33:30 GMT
billbarker    2002/08/05 22:33:30

  Modified:    jasper2/src/share/org/apache/jasper/runtime
                        PageContextImpl.java
  Log:
  Port fix for bug #11463 from 3.3 branch.
  
  Revision  Changes    Path
  1.14      +8 -6      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java
  
  Index: PageContextImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- PageContextImpl.java	18 Jul 2002 07:28:50 -0000	1.13
  +++ PageContextImpl.java	6 Aug 2002 05:33:30 -0000	1.14
  @@ -353,9 +353,11 @@
   	try {
   	    removeAttribute(name, PAGE_SCOPE);
   	    removeAttribute(name, REQUEST_SCOPE);
  -	    removeAttribute(name, SESSION_SCOPE);
  -	    removeAttribute(name, APPLICATION_SCOPE);
  -	} catch (Exception ex) {
  +	    if( session != null ) {
  +                removeAttribute(name, SESSION_SCOPE);
  +            }
  +            removeAttribute(name, APPLICATION_SCOPE);
  +        } catch (Exception ex) {
   	    // we remove as much as we can, and
   	    // simply ignore possible exceptions
   	}
  
  
  

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


Mime
View raw message