Skip to content

Commit 0871357

Browse files
Adds logic to check for outputPath
Without this logic, NPE are possible fixes #95
1 parent f369333 commit 0871357

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/bazel_diff/main.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ public Integer call() throws IOException {
111111
System.out.println("finalHashesJSONPath does not exist! Exiting");
112112
return ExitCode.USAGE;
113113
}
114+
if (outputPath == null) {
115+
System.out.println("outputPath was not provided! Exiting");
116+
return ExitCode.USAGE;
117+
}
114118
GitClient gitClient = new GitClientImpl(workspacePath);
115119
BazelClient bazelClient = new BazelClientImpl(
116120
workspacePath,

0 commit comments

Comments
 (0)