[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security/jaas ...
Gavin King
gavin.king at jboss.com
Tue Jun 26 17:13:09 EDT 2007
User: gavin
Date: 07/06/26 17:13:09
Modified: src/main/org/jboss/seam/security/jaas SeamLoginModule.java
Log:
fix npe
Revision Changes Path
1.7 +4 -0 jboss-seam/src/main/org/jboss/seam/security/jaas/SeamLoginModule.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SeamLoginModule.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/jaas/SeamLoginModule.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- SeamLoginModule.java 27 May 2007 09:24:38 -0000 1.6
+++ SeamLoginModule.java 26 Jun 2007 21:13:09 -0000 1.7
@@ -98,6 +98,10 @@
}
MethodExpression mb = Identity.instance().getAuthenticateMethod();
+ if (mb==null)
+ {
+ throw new IllegalStateException("No authentication method defined - please define <security:authenticate-method/> for <security:identity/> in components.xml");
+ }
try
{
More information about the jboss-cvs-commits
mailing list