If the responder cannot find an attribute class, it now responds with the attributes...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 10 Oct 2002 19:57:27 +0000 (19:57 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 10 Oct 2002 19:57:27 +0000 (19:57 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@316 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AAResponder.java

index e510e03..6dec271 100755 (executable)
@@ -140,7 +140,9 @@ public class AAResponder{
                Attribute dAttr = aAttr.getDirAttribute(userCtx, true);
                if(dAttr != null){
                    SAMLAttribute sAttr = jndi2saml(dAttr);
-                   sAttrs.add(sAttr);
+                   if (sAttr != null) {
+                       sAttrs.add(sAttr);
+                   }
                }
            }
            SAMLAttribute[] sa = new SAMLAttribute[sAttrs.size()];
@@ -314,7 +316,7 @@ public class AAResponder{
                        return sa.toSamlAttribute(this.domain, vals.toArray());
                } catch (Exception e) {
                        log.error("Failed to load the class for attribute (" + jAttr.getID() + ") :" + e);
-                       throw new AAException("Failed to load the class for attribute (" + jAttr.getID() + ") :" + e);
+                       return null;
                }
 
        }