fix NPE
authorwnorris <wnorris@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 10 Oct 2007 01:09:15 +0000 (01:09 +0000)
committerwnorris <wnorris@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 10 Oct 2007 01:09:15 +0000 (01:09 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2415 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/profile/IdPProfileHandlerManager.java

index ad70a3c..006dafd 100644 (file)
@@ -142,6 +142,10 @@ public class IdPProfileHandlerManager extends BaseReloadableService implements P
      * @return authentication method URI and handler appropriate for given login context
      */
     public Pair<String, LoginHandler> getAuthenticationHandler(LoginContext loginContext) {
+        if (loginContext == null) {
+            return null;
+        }
+        
         if (log.isDebugEnabled()) {
             log.debug(getId() + ": Looking up authentication method for relying party "
                     + loginContext.getRelyingPartyId());