[java-identity-provider] 02/03: Null fixes.

Codeberg noreply at shibboleth.net
Mon Sep 28 13:29:34 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
https://codeberg.org/Shibboleth/java-identity-provider/commit/4a041b9b37d1b3326dd82e48ddfacb53de8b5c0e

commit 4a041b9b37d1b3326dd82e48ddfacb53de8b5c0e
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Sep 28 09:13:11 2026 -0400

    Null fixes.
---
 .../idp/authn/context/impl/BaseAttributeDefinitionParserTest.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/context/impl/BaseAttributeDefinitionParserTest.java b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/context/impl/BaseAttributeDefinitionParserTest.java
index 51bd77a6f..aa49242c7 100644
--- a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/context/impl/BaseAttributeDefinitionParserTest.java
+++ b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/context/impl/BaseAttributeDefinitionParserTest.java
@@ -36,6 +36,7 @@ import net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl;
 import net.shibboleth.idp.attribute.resolver.spring.ad.BaseAttributeDefinitionParser;
 import net.shibboleth.idp.attribute.resolver.spring.ad.impl.SimpleAttributeDefinitionParser;
 import net.shibboleth.shared.component.ComponentInitializationException;
+import net.shibboleth.shared.logic.Constraint;
 import net.shibboleth.shared.spring.config.IdentifiableBeanPostProcessor;
 import net.shibboleth.shared.spring.config.StringToDurationConverter;
 import net.shibboleth.shared.spring.config.StringToIPRangeConverter;
@@ -102,7 +103,7 @@ public abstract class BaseAttributeDefinitionParserTest extends OpenSAMLInitBase
                 new StringToDurationConverter())));
         service.afterPropertiesSet();
 
-        context.getBeanFactory().setConversionService(service.getObject());
+        context.getBeanFactory().setConversionService(Constraint.isNotNull(service.getObject(), "Cannot be null"));
 
         loadFile(fileName, context, supressValid);
 
@@ -152,7 +153,7 @@ public abstract class BaseAttributeDefinitionParserTest extends OpenSAMLInitBase
                 new StringToDurationConverter())));
         service.afterPropertiesSet();
 
-        context.getBeanFactory().setConversionService(service.getObject());
+        context.getBeanFactory().setConversionService(Constraint.isNotNull(service.getObject(), "Cannot be null"));
 
         configReader.loadBeanDefinitions(BEAN_FILE_PATH + beanFileName);
 

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


More information about the commits mailing list