Separate catch for SAMLExceptions on attribute serialization.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 17 Oct 2002 01:05:50 +0000 (01:05 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 17 Oct 2002 01:05:50 +0000 (01:05 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@318 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index 6dec271..de39104 100755 (executable)
@@ -314,6 +314,10 @@ public class AAResponder{
                        log.debug("Loaded the class for " + attrClass);
                        ShibAttribute sa = (ShibAttribute) attrClass.newInstance();
                        return sa.toSamlAttribute(this.domain, vals.toArray());
+                       
+               } catch (SAMLException e) {
+                       log.error("Error converting attribute to SAML (" + jAttr.getID() + ") :" + e.getMessage());
+                       return null;
                } catch (Exception e) {
                        log.error("Failed to load the class for attribute (" + jAttr.getID() + ") :" + e);
                        return null;