[jboss-cvs] JBossAS SVN: r64780 - trunk/ejb3/src/main/org/jboss/ejb3/security.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Aug 22 11:22:56 EDT 2007


Author: anil.saldhana at jboss.com
Date: 2007-08-22 11:22:55 -0400 (Wed, 22 Aug 2007)
New Revision: 64780

Modified:
   trunk/ejb3/src/main/org/jboss/ejb3/security/Ejb3AuthenticationInterceptorv2.java
Log:
JBAS-4620:NPE happening when security domain annotation is missing for the deployment and ejb3 wants to bypass sec

Modified: trunk/ejb3/src/main/org/jboss/ejb3/security/Ejb3AuthenticationInterceptorv2.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/security/Ejb3AuthenticationInterceptorv2.java	2007-08-22 14:25:56 UTC (rev 64779)
+++ trunk/ejb3/src/main/org/jboss/ejb3/security/Ejb3AuthenticationInterceptorv2.java	2007-08-22 15:22:55 UTC (rev 64780)
@@ -138,7 +138,8 @@
       }
       try
       { 
-         SecurityActions.pushCallerRunAsIdentity(sc.getOutgoingRunAs());
+         if(sc != null)
+           SecurityActions.pushCallerRunAsIdentity(sc.getOutgoingRunAs());
          
          return invocation.invokeNext();  
       }




More information about the jboss-cvs-commits mailing list