]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11125 Add IT
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 21 Aug 2018 08:31:10 +0000 (10:31 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 19 Sep 2018 08:51:40 +0000 (10:51 +0200)
sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ChangedLinesPublisher.java

index ef6dcc60278c11075664e2c3e1053fa376afd29e..d15fa2d09613b93d673fa2a6a250179b504465c2 100644 (file)
@@ -85,7 +85,7 @@ public class ChangedLinesPublisher implements ReportPublisherStep {
       Set<Integer> changedLines = pathSetMap.get(e.getKey());
       // if the file got no information returned by the SCM, we write nothing in the report and
       // the compute engine will use SCM dates to estimate which lines are new
-      if (changedLines != null) {
+      if (changedLines != null && !changedLines.isEmpty()) {
         count++;
         writeChangedLines(writer, e.getValue().batchId(), changedLines);
       }