Skip files that have no blame result assigned.
@@ -73,6 +73,7 @@ public class GitBlamer extends AbstractBlamer {
});
for (FileAnnotation annotation : annotations) {
+ if (blamesOfConflictingFiles.containsKey(annotation.getFileName())) {
BlameRequest blame = blamesOfConflictingFiles.get(annotation.getFileName());
int line = annotation.getPrimaryLineNumber();
annotation.setAuthorName(blame.getName(line));
@@ -80,6 +81,7 @@ public class GitBlamer extends AbstractBlamer {
annotation.setCommitId(blame.getCommit(line));
}
}
+ }
private Map<String, BlameResult> loadBlameResultsForFiles(final Map<String, BlameRequest> linesOfConflictingFiles)
throws InterruptedException, IOException {
