Wrong format variable in comparison.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 4 Oct 2003 18:50:52 +0000 (18:50 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 4 Oct 2003 18:50:52 +0000 (18:50 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@768 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/hs/provider/IdentityHandleRepository.java

index 0b8b18f..76a6789 100644 (file)
@@ -113,7 +113,7 @@ public class IdentityHandleRepository extends BaseHandleRepository implements Ha
         * @see edu.internet2.middleware.shibboleth.hs.HandleRepository#getPrincipal(String)
         */
        public AuthNPrincipal getPrincipal(String handle, String format) throws HandleRepositoryException, InvalidHandleException {
-        if (this.format.equals(Constants.SHIB_NAMEID_FORMAT_URI)) {
+        if (format != null && format.equals(Constants.SHIB_NAMEID_FORMAT_URI)) {
             return generator.getPrincipal(handle, format);
         }