[java-shib-shared] branch main updated: Fix a null warning.

Scott Cantor cantor.2 at osu.edu
Mon Nov 28 15:35:37 UTC 2022


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

scantor pushed a commit to branch main
in repository java-shib-shared.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=313326bc6712068ceda43dc77f6d2deff10576ee

The following commit(s) were added to refs/heads/main by this push:
     new 313326bc Fix a null warning.
313326bc is described below

commit 313326bc6712068ceda43dc77f6d2deff10576ee
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Nov 28 10:35:34 2022 -0500

    Fix a null warning.
---
 .../net/shibboleth/shared/spring/service/ClassBasedServiceStrategy.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/shib-service/src/main/java/net/shibboleth/shared/spring/service/ClassBasedServiceStrategy.java b/shib-service/src/main/java/net/shibboleth/shared/spring/service/ClassBasedServiceStrategy.java
index 395d3127..32c04d91 100644
--- a/shib-service/src/main/java/net/shibboleth/shared/spring/service/ClassBasedServiceStrategy.java
+++ b/shib-service/src/main/java/net/shibboleth/shared/spring/service/ClassBasedServiceStrategy.java
@@ -66,6 +66,7 @@ public class ClassBasedServiceStrategy<T> implements Function<ApplicationContext
             throw new ServiceException("Reload produced " + components.size() + " ServiceableComponents");
         }
         final T value = components.iterator().next();
+        assert value != null;
         final SpringServiceableComponent<T> result = new  SpringServiceableComponent<>(value);
         result.setApplicationContext(appContext);
         return result;

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


More information about the commits mailing list