aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2018-08-21 10:31:10 +0200
committersonartech <sonartech@sonarsource.com>2018-09-19 10:51:40 +0200
commit697d49b00406af4ecd4722dbf6b662bdee01c89a (patch)
treebaf8c2db38050b8e74ca9ab88b0e134c635c0d5a /sonar-scanner-engine
parent57987b49f0b273811165818e54334c4f7eb3d24a (diff)
downloadsonarqube-697d49b00406af4ecd4722dbf6b662bdee01c89a.tar.gz
sonarqube-697d49b00406af4ecd4722dbf6b662bdee01c89a.zip
SONAR-11125 Add IT
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ChangedLinesPublisher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ChangedLinesPublisher.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ChangedLinesPublisher.java
index ef6dcc60278..d15fa2d0961 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ChangedLinesPublisher.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ChangedLinesPublisher.java
@@ -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);
}