[java-plugin-shibd-saml] branch main updated: Trial a compile fix through CI build.
Scott Cantor
cantor.2 at osu.edu
Tue Oct 15 16:31:40 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-plugin-shibd-saml.
View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-shibd-saml.git;a=commit;h=7b7f11d509915a0b7631e3fe95e920ed74473810
The following commit(s) were added to refs/heads/main by this push:
new 7b7f11d Trial a compile fix through CI build.
7b7f11d is described below
commit 7b7f11d509915a0b7631e3fe95e920ed74473810
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Oct 15 12:31:37 2024 -0400
Trial a compile fix through CI build.
---
.../sp/saml/saml2/profile/impl/ExtractSAMLAttributes.java | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/ExtractSAMLAttributes.java b/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/ExtractSAMLAttributes.java
index c15a778..4f9e0b6 100644
--- a/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/ExtractSAMLAttributes.java
+++ b/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/ExtractSAMLAttributes.java
@@ -681,11 +681,13 @@ public class ExtractSAMLAttributes extends AbstractApplicationAction {
if (issuerAttributeId != null) {
final Issuer issuer = assertion.getIssuer();
- if (issuer != null && issuer.getValue() instanceof String s) {
- assert issuerAttributeId != null;
- final IdPAttribute attr = new IdPAttribute(issuerAttributeId);
- attr.setValues(CollectionSupport.singletonList(new StringAttributeValue(s)));
- attributes.add(attr);
+ if (issuer != null) {
+ if (issuer.getValue() instanceof String s) {
+ assert issuerAttributeId != null;
+ final IdPAttribute attr = new IdPAttribute(issuerAttributeId);
+ attr.setValues(CollectionSupport.singletonList(new StringAttributeValue(s)));
+ attributes.add(attr);
+ }
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list