Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Commit 8c18b80

Browse files
Merge pull request #63 from snyk/feat/greatest-feature-of-all-time
feat: throw exception if projectId is empty string
2 parents 36d046b + 5cf291a commit 8c18b80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/snyk/agent/logic/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class Config {
5151
boolean skipBuiltInRules,
5252
boolean skipMetaPosts,
5353
boolean addShutdownHook) {
54-
if (null == projectId) {
54+
if (null == projectId || projectId.trim().equals("")) {
5555
throw new IllegalStateException("projectId is required");
5656
}
5757
this.projectId = projectId;

0 commit comments

Comments
 (0)