[java-identity-provider] branch main updated: Fix null violation.

Scott Cantor cantor.2 at osu.edu
Wed Sep 4 16:49:15 UTC 2024


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

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

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=2de4eafc4a4b6d46885e81b242001250be20ba15

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

commit 2de4eafc4a4b6d46885e81b242001250be20ba15
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Sep 4 12:49:11 2024 -0400

    Fix null violation.
---
 .../idp/consent/flow/ar/impl/ValidatedExtractedConsent.java         | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/idp-consent-impl/src/main/java/net/shibboleth/idp/consent/flow/ar/impl/ValidatedExtractedConsent.java b/idp-consent-impl/src/main/java/net/shibboleth/idp/consent/flow/ar/impl/ValidatedExtractedConsent.java
index f3b6a7f88..a5d8ecb19 100644
--- a/idp-consent-impl/src/main/java/net/shibboleth/idp/consent/flow/ar/impl/ValidatedExtractedConsent.java
+++ b/idp-consent-impl/src/main/java/net/shibboleth/idp/consent/flow/ar/impl/ValidatedExtractedConsent.java
@@ -46,7 +46,8 @@ public class ValidatedExtractedConsent extends AbstractAttributeReleaseAction {
     @Override protected void doExecute(@Nonnull final ProfileRequestContext profileRequestContext,
             @Nonnull final ProfileInterceptorContext interceptorContext) {
 
-        if (!getAttributeReleaseFlowDescriptor().isPerAttributeConsentEnabled()) {
+        final AttributeReleaseFlowDescriptor flow = getAttributeReleaseFlowDescriptor();
+        if (flow == null || !flow.isPerAttributeConsentEnabled()) {
             final ConsentContext consentContext = getConsentContext();
             assert consentContext != null;
             final Map<String, Consent> currentConsents = consentContext.getCurrentConsents();
@@ -59,4 +60,5 @@ public class ValidatedExtractedConsent extends AbstractAttributeReleaseAction {
             log.debug("{} Consent context '{}'", getLogPrefix(), consentContext);
         }
     }
-}
+
+}
\ No newline at end of file

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


More information about the commits mailing list