Skip to content

Commit

Permalink
fix email source null check (#7146)
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn authored Nov 26, 2024
1 parent 71e8ec9 commit 108b56f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void setSourceName(SourceAware sourceAware) {
}

String providedSourceName = source.getSourceName() != null ? source.getSourceName().getContent() : null;
if (providedSourceName == null || providedSourceName.equals(ORCID_EMAIL_VALIDATOR_CLIENT_NAME)) {
if (providedSourceName != null && providedSourceName.equals(ORCID_EMAIL_VALIDATOR_CLIENT_NAME)) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void setSourceName(SourceAware sourceAware) {
}

String providedSourceName = source.getSourceName() != null ? source.getSourceName().getContent() : null;
if (providedSourceName == null || providedSourceName.equals(ORCID_EMAIL_VALIDATOR_CLIENT_NAME)) {
if (providedSourceName != null && providedSourceName.equals(ORCID_EMAIL_VALIDATOR_CLIENT_NAME)) {
return;
}

Expand Down

0 comments on commit 108b56f

Please sign in to comment.