cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise SunRise.java
Date Wed, 21 Aug 2002 14:55:27 GMT
cziegeler    2002/08/21 07:55:27

  Modified:    src/scratchpad/src/org/apache/cocoon/sunshine/sunrise Tag:
                        cocoon_2_0_3_branch SunRise.java
  Log:
  Applied fix for NPE
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.5   +10 -2     xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/Attic/SunRise.java
  
  Index: SunRise.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/Attic/SunRise.java,v
  retrieving revision 1.5.2.4
  retrieving revision 1.5.2.5
  diff -u -r1.5.2.4 -r1.5.2.5
  --- SunRise.java	13 Aug 2002 15:33:33 -0000	1.5.2.4
  +++ SunRise.java	21 Aug 2002 14:55:27 -0000	1.5.2.5
  @@ -1082,7 +1082,15 @@
               }
               // remove context
               context.removeXML(logoutHandlerName);
  -            ((SessionContextImpl)this.getSunShineComponent().getContext(Constants.SESSION_CONTEXT_NAME)).cleanParametersCache(logoutHandlerName);
  +            // FIXME (CZ): The sessionContextImpl should not be null, but
  +            //             it is sometimes. Why?
  +            SessionContextImpl sessionContextImpl = (SessionContextImpl)
  +                        this.getSunShineComponent().getContext(Constants.SESSION_CONTEXT_NAME);
  +            if (sessionContextImpl != null) {
  +                sessionContextImpl.cleanParametersCache(logoutHandlerName);
  +            } else if (this.getLogger().isWarnEnabled()) {
  +                this.getLogger().warn("AuthenticationManager:logout() - sessionContextImpl
is null");
  +            }
               Handler logoutHandler = (Handler)this.getHandler(logoutHandlerName);
   
               // reset application load status
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message