aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-11-21 15:15:33 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-11-21 15:15:52 +0100
commit0e7cb41d72ca7f90bf1db12299505ed486ede483 (patch)
tree2166b9454e620d90313e24ceb9a9b155f6bf99ee
parenta0d8686b208cda69318ad130ee4f1bcce34a363e (diff)
downloadsonarqube-0e7cb41d72ca7f90bf1db12299505ed486ede483.tar.gz
sonarqube-0e7cb41d72ca7f90bf1db12299505ed486ede483.zip
SONAR-5767 Not able to display Integration Tests Coverage when line given by Coverage Report can't be found in Source File
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/mixins/main-coverage.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/coffee/component-viewer/mixins/main-coverage.coffee b/server/sonar-web/src/main/coffee/component-viewer/mixins/main-coverage.coffee
index 971074c918f..f0223d27486 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/mixins/main-coverage.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/mixins/main-coverage.coffee
@@ -19,6 +19,7 @@ define [], () ->
formattedSource = @source.get 'formattedSource'
coverage.forEach (c) ->
line = _.findWhere formattedSource, lineNumber: c[0]
+ return unless line?
line.coverage =
covered: c[1]
testCases: c[2]