[gatein-commits] gatein SVN: r5009 - components/sso/trunk/agent/src/main/java/org/gatein/sso/agent/login.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Nov 10 07:45:39 EST 2010


Author: sohil.shah at jboss.com
Date: 2010-11-10 07:45:39 -0500 (Wed, 10 Nov 2010)
New Revision: 5009

Modified:
   components/sso/trunk/agent/src/main/java/org/gatein/sso/agent/login/SPNEGORolesModule.java
Log:
JBEPP-562: EPP5+SPNEGO : NullPointerException when automated logout during session expiration

Modified: components/sso/trunk/agent/src/main/java/org/gatein/sso/agent/login/SPNEGORolesModule.java
===================================================================
--- components/sso/trunk/agent/src/main/java/org/gatein/sso/agent/login/SPNEGORolesModule.java	2010-11-10 12:35:49 UTC (rev 5008)
+++ components/sso/trunk/agent/src/main/java/org/gatein/sso/agent/login/SPNEGORolesModule.java	2010-11-10 12:45:39 UTC (rev 5009)
@@ -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