bit more optimization
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 29 Aug 2007 11:48:56 +0000 (11:48 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 29 Aug 2007 11:48:56 +0000 (11:48 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2354 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/session/impl/SessionManagerImpl.java

index 21c56f7..b6c52e0 100644 (file)
@@ -92,6 +92,10 @@ public class SessionManagerImpl implements SessionManager<Session>, ApplicationC
 
     /** {@inheritDoc} */
     public void destroySession(String sessionID) {
+        if(sessionID == null){
+            return;
+        }
+        
         SessionManagerEntry sessionEntry = sessionStore.get(partition, sessionID);
         if(sessionEntry != null){
             appCtx.publishEvent(new LogoutEvent(sessionEntry.getSession()));
@@ -100,6 +104,10 @@ public class SessionManagerImpl implements SessionManager<Session>, ApplicationC
 
     /** {@inheritDoc} */
     public Session getSession(String sessionID) {
+        if(sessionID == null){
+            return null;
+        }
+        
         SessionManagerEntry sessionEntry = sessionStore.get(partition, sessionID);
         if(sessionEntry == null){
             return null;