tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator SingleSignOn.java
Date Sat, 24 Aug 2002 00:11:23 GMT
bobh        2002/08/23 17:11:23

  Modified:    catalina/src/share/org/apache/catalina/authenticator
                        SingleSignOn.java
  Log:
  - calling toString() gets a NPE if the container isn't set
  
  - remove some log() messages that I left behind (oops)
  
  Revision  Changes    Path
  1.3       +8 -13     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/SingleSignOn.java
  
  Index: SingleSignOn.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/SingleSignOn.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SingleSignOn.java	12 Aug 2002 19:12:44 -0000	1.2
  +++ SingleSignOn.java	24 Aug 2002 00:11:23 -0000	1.3
  @@ -303,19 +303,11 @@
   
           if ( event.getData() != null 
                && "logout".equals( event.getData().toString() )) {
  -
  -            log("XXXXX logout event on " + ssoId);
  -
               // logout of all applications
               deregister(ssoId);
  -
           } else {
  -
  -            log("XXXXX invalidate of just one session " + ssoId + " " + session);
  -
               // invalidate just one session
               deregister(ssoId, session);
  -
           }
   
       }
  @@ -426,7 +418,10 @@
       public String toString() {
   
           StringBuffer sb = new StringBuffer("SingleSignOn[");
  -        sb.append(container.getName());
  +	if (container == null )
  +	    sb.append(container.getName());
  +	else
  +	    sb.append("Container is null");
           sb.append("]");
           return (sb.toString());
   
  
  
  

--
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