diff --git a/src/main/java/io/jenkins/plugins/checks/github/GitHubChecksContext.java b/src/main/java/io/jenkins/plugins/checks/github/GitHubChecksContext.java index 1e0f4ed3..83b59ae0 100644 --- a/src/main/java/io/jenkins/plugins/checks/github/GitHubChecksContext.java +++ b/src/main/java/io/jenkins/plugins/checks/github/GitHubChecksContext.java @@ -95,7 +95,7 @@ Optional 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() {