Skip to content

Commit

Permalink
[ES-1127]
Browse files Browse the repository at this point in the history
Signed-off-by: Venkata Saidurga Polamraju <[email protected]>
  • Loading branch information
pvsaidurga committed Jun 24, 2024
1 parent a485ba6 commit 3e240e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public KeyBindingResult doKeyBinding(String individualId, List<AuthChallenge> ch

if(responseEntity.getStatusCode().is2xxSuccessful() && responseEntity.getBody() != null) {
IdaResponseWrapper<KeyBindingResponse> responseWrapper = responseEntity.getBody();
if (responseWrapper == null && responseWrapper.getResponse() == null) //NOSONAR responseWrapper is already evaluated to be not null
if ((responseWrapper == null && responseWrapper.getResponse() == null) || responseWrapper.getErrors()!=null) //NOSONAR responseWrapper is already evaluated to be not null
{
log.error("Error response received from IDA (Key-binding) Errors: {}", responseWrapper.getErrors());
throw new KeyBindingException(CollectionUtils.isEmpty(responseWrapper.getErrors()) ?
Expand Down

0 comments on commit 3e240e0

Please sign in to comment.