Skip to content

Commit

Permalink
Merge pull request #232 from zbynek/handle-missing-xml
Browse files Browse the repository at this point in the history
Handle misssing XML file from previous build
  • Loading branch information
uhafner committed Oct 14, 2021
2 parents 81dc044 + 8e25b06 commit 7608529
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private CoverageAction convertResultToAction(final CoverageResult coverageReport
previousResult = getPreviousResult(run.getPreviousBuild());
}

if (!previousResult.isPresent()) {
if (!previousResult.isPresent() || previousResult.get().getResult() == null) {
log.logInfo("-> Found no reference result in reference build");

return Optional.empty();
Expand Down

0 comments on commit 7608529

Please sign in to comment.