aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-02-13 13:28:33 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-02-13 13:28:33 +0100
commitc8ead9516ba9d040fe5b079f8289a87401a6a553 (patch)
treeab3eb1d09f7bbc6981c9273f61f1159392eada22 /sonar-batch/src/main
parent23221e63fe143006af0adff8c58751e8a1402745 (diff)
downloadsonarqube-c8ead9516ba9d040fe5b079f8289a87401a6a553.tar.gz
sonarqube-c8ead9516ba9d040fe5b079f8289a87401a6a553.zip
SONAR-6172 Do not fail when a file has no blame information
Diffstat (limited to 'sonar-batch/src/main')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/scm/DefaultBlameOutput.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scm/DefaultBlameOutput.java b/sonar-batch/src/main/java/org/sonar/batch/scm/DefaultBlameOutput.java
index a3b0e2de645..b95ba5d2178 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scm/DefaultBlameOutput.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/scm/DefaultBlameOutput.java
@@ -67,10 +67,7 @@ class DefaultBlameOutput implements BlameOutput {
@Override
public synchronized void blameResult(InputFile file, List<BlameLine> lines) {
Preconditions.checkNotNull(file);
- if (lines == null) {
- // Ignore the file. Will be logged at the end.
- return;
- }
+ Preconditions.checkNotNull(lines);
Preconditions.checkArgument(allFilesToBlame.contains(file), "It was not expected to blame file " + file.relativePath());
if (lines.size() != file.lines()) {