Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Add null check for authorType check (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
chzhanpeng authored Jun 23, 2020
1 parent 58cbfd1 commit c2d6d4d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ private CodeReviewAuditResponseV2 getPeerReviewResponses(CollectorItem repoItem,
private void checkCommitByLDAPUnauthUser(CodeReviewAuditResponseV2 reviewAuditResponseV2, Commit commit) {
if (StringUtils.isEmpty(commit.getScmAuthorLDAPDN()) &&
!CommonCodeReview.matchIncrementVersionTag(commit.getScmCommitLog(), settings) &&
commit.getScmAuthorType() != null &&
!commit.getScmAuthorType().equals(AuthorType.Bot)) {
reviewAuditResponseV2.addAuditStatus(CodeReviewAuditStatus.SCM_AUTHOR_LOGIN_INVALID);
// add commit made by unauth user to commitsByLDAPUnauthUsers list
Expand Down

0 comments on commit c2d6d4d

Please sign in to comment.