Skip to content

Commit 953dbb6

Browse files
up
1 parent 3c8a37d commit 953dbb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BazelSourceFileTargetImpl implements BazelSourceFileTarget {
2424
String filenameSubstring = name.substring(2);
2525
String filenamePath = filenameSubstring.replaceFirst(":", "/");
2626
File sourceFile = new File(workingDirectory.toString(), filenamePath);
27-
if (sourceFile.canRead()) {
27+
if (sourceFile.isFile() && sourceFile.canRead()) {
2828
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
2929
outputStream.write(Files.readAllBytes(sourceFile.toPath()));
3030
outputStream.write(digest);

0 commit comments

Comments
 (0)