Skip to content

Commit

Permalink
Add null check for credentials id.
Browse files Browse the repository at this point in the history
  • Loading branch information
XiongKezhi committed Aug 25, 2020
1 parent 5d7af92 commit 7b151f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Optional<GitHubAppCredentials> findGitHubAppCredentials(final String credentials
abstract boolean isValid(PluginLogger listener);

protected boolean hasGitHubAppCredentials() {
return findGitHubAppCredentials(getCredentialsId()).isPresent();
return findGitHubAppCredentials(StringUtils.defaultIfEmpty(getCredentialsId(), "")).isPresent();
}

protected boolean hasCredentialsId() {
Expand Down

0 comments on commit 7b151f3

Please sign in to comment.