Skip to content

Commit

Permalink
[DCR Config] Null pointer bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anjuchamantha committed Apr 4, 2024
1 parent ec72d06 commit be5add7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ private void overrideSecuredResource(ResourceConfig securedResource, String norm

DCRConfiguration dcrConfiguration = DCRMgtOGSiServiceFactory.getInstance().getDCRConfiguration();
Boolean isClientAuthenticationRequired = dcrConfiguration.isAuthenticationRequired();
if (isClientAuthenticationRequired.equals(Boolean.TRUE)) {
if ((Boolean.TRUE).equals(isClientAuthenticationRequired)) {
securedResource.setIsSecured(true);
} else if (isClientAuthenticationRequired.equals(Boolean.FALSE)){
} else if ((Boolean.FALSE).equals(isClientAuthenticationRequired)) {
securedResource.setIsSecured(false);
}
} else {
Expand Down

0 comments on commit be5add7

Please sign in to comment.