Skip to content

Commit bf6d2b2

Browse files
fix for potential null pointer
1 parent 29362fb commit bf6d2b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public Set<String> queryForImpactedTargets(Set<String> impactedTargets, String a
5353
.map(target -> String.format("'%s'", target))
5454
.collect(Collectors.joining(" + "));
5555
String query = "";
56-
if (hashAllTargets) {
56+
if (hashAllTargets != null && hashAllTargets) {
5757
query = targetQuery;
5858
} else {
5959
query = String.format("rdeps(//... except '//external:all-targets', %s)", targetQuery);

0 commit comments

Comments
 (0)