Skip to content

Commit

Permalink
Merge pull request #2187 from rsearls/ELY-2797-NullPointerException-r…
Browse files Browse the repository at this point in the history
…equest_parameter_supported

[ELY-2797] check for null Boolean and return boolean
  • Loading branch information
fjuma authored Aug 28, 2024
2 parents 1eb5d16 + 882fae7 commit d78b28d
Show file tree
Hide file tree
Showing 2 changed files with 390 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ public void setClaimTypesSupported(List<String> claimTypesSupported) {
this.claimTypesSupported = claimTypesSupported;
}

public Boolean getClaimsParameterSupported() {
return claimsParameterSupported;
public boolean getClaimsParameterSupported() {
return claimsParameterSupported == null ? false : claimsParameterSupported;
}

public void setClaimsParameterSupported(Boolean claimsParameterSupported) {
Expand All @@ -345,16 +345,16 @@ public void setScopesSupported(List<String> scopesSupported) {
this.scopesSupported = scopesSupported;
}

public Boolean getRequestParameterSupported() {
return requestParameterSupported;
public boolean getRequestParameterSupported() {
return requestParameterSupported == null ? false : requestParameterSupported;
}

public void setRequestParameterSupported(Boolean requestParameterSupported) {
this.requestParameterSupported = requestParameterSupported;
}

public Boolean getRequestUriParameterSupported() {
return requestUriParameterSupported;
public boolean getRequestUriParameterSupported() {
return requestUriParameterSupported == null ? false : requestUriParameterSupported;
}

public void setRequestUriParameterSupported(Boolean requestUriParameterSupported) {
Expand Down Expand Up @@ -393,12 +393,12 @@ public void setRevocationEndpointAuthSigningAlgValuesSupported(List<String> revo
this.revocationEndpointAuthSigningAlgValuesSupported = revocationEndpointAuthSigningAlgValuesSupported;
}

public Boolean getBackchannelLogoutSupported() {
return backchannelLogoutSupported;
public boolean getBackchannelLogoutSupported() {
return backchannelLogoutSupported == null ? false : backchannelLogoutSupported;
}

public Boolean getBackchannelLogoutSessionSupported() {
return backchannelLogoutSessionSupported;
public boolean getBackchannelLogoutSessionSupported() {
return backchannelLogoutSessionSupported == null ? false : backchannelLogoutSessionSupported;
}

public void setBackchannelLogoutSessionSupported(Boolean backchannelLogoutSessionSupported) {
Expand All @@ -416,8 +416,8 @@ public List<String> getCodeChallengeMethodsSupported() {

// KEYCLOAK-6771 Certificate Bound Token
// https://tools.ietf.org/html/draft-ietf-oauth-mtls-08#section-6.2
public Boolean getTlsClientCertificateBoundAccessTokens() {
return tlsClientCertificateBoundAccessTokens;
public boolean getTlsClientCertificateBoundAccessTokens() {
return tlsClientCertificateBoundAccessTokens == null ? false : tlsClientCertificateBoundAccessTokens;
}

public List<String> getRequestObjectEncryptionAlgValuesSupported() {
Expand Down
Loading

0 comments on commit d78b28d

Please sign in to comment.