[java-oidfed-common] 02/02: Add missing null-checks into Spring expressions.

Codeberg noreply at shibboleth.net
Fri May 15 11:19:39 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/efd9ee3f24e4d851f674d11646acb5bd1ceb963a

commit efd9ee3f24e4d851f674d11646acb5bd1ceb963a
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri May 15 14:19:18 2026 +0300

    Add missing null-checks into Spring expressions.
---
 .../src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oidfed-common-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml b/oidfed-common-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
index 36815f0..ee919fc 100644
--- a/oidfed-common-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
+++ b/oidfed-common-conf-impl/src/main/resources/META-INF/net.shibboleth.idp/postconfig.xml
@@ -279,7 +279,7 @@
                 <bean parent="shibboleth.Functions.Expression" c:expression="#null" />
             </property>
             <property name="audienceLookupStrategy">
-                <bean parent="shibboleth.Functions.Expression" c:expression="#input?.get(T(net.shibboleth.oidfed.metadata.cache.FederationEndpointEntityStatementCriterion))?.getValue().getSubject()" />
+                <bean parent="shibboleth.Functions.Expression" c:expression="#input?.get(T(net.shibboleth.oidfed.metadata.cache.FederationEndpointEntityStatementCriterion))?.getValue()?.getSubject()" />
             </property>
             <property name="issuerLookupStrategy">
                 <bean parent="shibboleth.Functions.Constant"
@@ -782,7 +782,7 @@
         p:maxCacheDuration="%{idp.oidfed.cache.signedKeyset.maxRefreshDelay:PT30M}"
         p:metadataExpirationTimeStrategy-ref="DefaultResponseContainerExpirationTimeStrategy">
         <property name="criteriaToIdentifierStrategy">
-            <bean parent="shibboleth.Functions.Expression" c:expression="#input?.get(T(net.shibboleth.oidfed.metadata.cache.SubjectEntityStatementCriterion))?.getValue().getSubject() + ':' + #input?.get(T(net.shibboleth.oidfed.metadata.cache.keyset.SubjectSignedKeysetUriCriterion))?.getValue()"/>
+            <bean parent="shibboleth.Functions.Expression" c:expression="#input?.get(T(net.shibboleth.oidfed.metadata.cache.SubjectEntityStatementCriterion))?.getValue()?.getSubject() + ':' + #input?.get(T(net.shibboleth.oidfed.metadata.cache.keyset.SubjectSignedKeysetUriCriterion))?.getValue()"/>
         </property>
         <property name="identifierExtractionStrategy">
             <bean parent="shibboleth.Functions.Expression" c:expression="#input?.getEntityId() + ':' + #input?.getIdentifier().getUri()"/>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list