Skip to content

Commit

Permalink
Check if the output directory exists or not
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Jan 15, 2024
1 parent 4635dca commit 048bc83
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public List<SourceFileCoverage> getCoverageDetail(IProgressMonitor monitor) thro
final Analyzer analyzer = new Analyzer(
execFileLoader.getExecutionDataStore(), coverageBuilder);
final File outputDirectory = getFileForFs(javaProject, entry.getKey());
if (!outputDirectory.exists()) {
continue;
}
analyzer.analyzeAll(outputDirectory);
final Map<String, Collection<IClassCoverage>> classCoverageBySourceFilePath =
groupClassCoverageBySourceFilePath(coverageBuilder.getClasses());
Expand Down

0 comments on commit 048bc83

Please sign in to comment.