Now we follow SAML semantics for returning no attributes
authordousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 13 Jun 2002 15:43:13 +0000 (15:43 +0000)
committerdousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 13 Jun 2002 15:43:13 +0000 (15:43 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@102 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index 00209ee..30dd93a 100755 (executable)
@@ -74,9 +74,12 @@ public class AASaml {
                                               sub.getConfirmationMethods(),
                                               sub.getConfirmationData());
             
-           SAMLStatement sStatement = new SAMLAttributeStatement(rSubject, attrs);
-           SAMLStatement[] statements = new SAMLStatement[1];
-           statements[0] = sStatement;
+           SAMLStatement[] statements = null;
+           if(attrs != null && attrs.length > 0){
+               statements = new SAMLStatement[1];
+               statements[0] = new SAMLAttributeStatement(rSubject, attrs);
+           }
+
            Date now = new Date();
            Date  then = null;
            if(attrs != null && attrs.length > 0){