[gatein-commits] gatein SVN: r5019 - epp/sso/branches/1.0-epp-5.0-Branch/agent/src/main/java/org/gatein/sso/agent/login.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Nov 10 15:35:41 EST 2010


Author: thomas.heute at jboss.com
Date: 2010-11-10 15:35:41 -0500 (Wed, 10 Nov 2010)
New Revision: 5019

Modified:
   epp/sso/branches/1.0-epp-5.0-Branch/agent/src/main/java/org/gatein/sso/agent/login/SPNEGORolesModule.java
Log:
JBEPP-562: EPP5+SPNEGO : NullPointerException when automated logout during session expiration


Modified: epp/sso/branches/1.0-epp-5.0-Branch/agent/src/main/java/org/gatein/sso/agent/login/SPNEGORolesModule.java
===================================================================
--- epp/sso/branches/1.0-epp-5.0-Branch/agent/src/main/java/org/gatein/sso/agent/login/SPNEGORolesModule.java	2010-11-10 20:32:40 UTC (rev 5018)
+++ epp/sso/branches/1.0-epp-5.0-Branch/agent/src/main/java/org/gatein/sso/agent/login/SPNEGORolesModule.java	2010-11-10 20:35:41 UTC (rev 5019)
@@ -222,6 +222,11 @@
             
             //Obtain the httpsession key
             HttpServletRequest request = (HttpServletRequest) PolicyContext.getContext("javax.servlet.http.HttpServletRequest");
+            if(request == null)
+            {
+                return true;
+            }
+            
             HttpSession session = request.getSession(false);
             String sessionId = session.getId();
 
@@ -280,7 +285,7 @@
          }
          catch (Exception e)
          {
-            log.error("Could not perform JBoss security manager cache eviction", e);
+            log.debug("Could not perform JBoss security manager cache eviction", e);
          }
       }
       else



More information about the gatein-commits mailing list