[java-idp-plugin-duo] branch main updated: Fix a null bug.

Scott Cantor cantor.2 at osu.edu
Mon Jan 8 17:39:37 UTC 2024


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

scantor pushed a commit to branch main
in repository java-idp-plugin-duo.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-duo.git;a=commit;h=f982cc3cdb999ba46a5cd339f54c849d3867ff92

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

commit f982cc3cdb999ba46a5cd339f54c849d3867ff92
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Jan 8 12:39:35 2024 -0500

    Fix a null bug.
---
 .../java/net/shibboleth/idp/plugin/authn/duo/impl/DuoAuthnFlowTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/DuoAuthnFlowTest.java b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/DuoAuthnFlowTest.java
index 1f117e4e..97f24079 100644
--- a/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/DuoAuthnFlowTest.java
+++ b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/DuoAuthnFlowTest.java
@@ -290,7 +290,7 @@ public class DuoAuthnFlowTest extends AbstractAuthnXmlFlowExecutionTests {
         final ProfileRequestContext context = buildProfileRequestContext(false,true);
         // Add passwordless context to init passwordless flow
         final DuoPasswordlessContext passwordlessContext = new DuoPasswordlessContext();
-        context.getSubcontext(AuthenticationContext.class).addSubcontext(passwordlessContext);
+        context.ensureSubcontext(AuthenticationContext.class).addSubcontext(passwordlessContext);
         // Add a username into the request for the passwordless flow to use
         mockRequest.addParameter("j_username", "jdoe");
         

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


More information about the commits mailing list