[java-oidfed-common] 02/02: Only included non-empty array of trust_marks into the entity configuration.
Codeberg
noreply at shibboleth.net
Wed Sep 16 09:21:01 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-oidfed-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidfed-common/commit/48f3cb7f50c5fc2bf7da432164329c1694862cde
commit 48f3cb7f50c5fc2bf7da432164329c1694862cde
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Wed Sep 16 12:19:56 2026 +0300
Only included non-empty array of trust_marks into the entity configuration.
---
.../navigate/DefaultEntityConfigurationTrustMarksLookupStrategy.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/navigate/DefaultEntityConfigurationTrustMarksLookupStrategy.java b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/navigate/DefaultEntityConfigurationTrustMarksLookupStrategy.java
index d207f6b..d2d2629 100644
--- a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/navigate/DefaultEntityConfigurationTrustMarksLookupStrategy.java
+++ b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/navigate/DefaultEntityConfigurationTrustMarksLookupStrategy.java
@@ -58,7 +58,7 @@ public class DefaultEntityConfigurationTrustMarksLookupStrategy extends Abstract
}
/** {@inheritDoc} */
- @Override @Nonnull
+ @Override @Nullable
public List<Map<String, String>> apply(@Nullable final ProfileRequestContext profileRequestContext) {
checkComponentActive();
final List<Map<String, String>> trustMarks = new ArrayList<>();
@@ -71,7 +71,7 @@ public class DefaultEntityConfigurationTrustMarksLookupStrategy extends Abstract
.ifPresent(trustMark -> trustMarks.add(trustMark));
}
- return CollectionSupport.copyToList(trustMarks);
+ return trustMarks.isEmpty() ? null : CollectionSupport.copyToList(trustMarks);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list