From 9134c81000c1e9100fc6ce9b694790e2cbe834e9 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 15 Oct 2012 10:40:06 +0200 Subject: [PATCH] SONAR-2804 Fix bug when no branch to cover --- .../src/main/webapp/WEB-INF/app/helpers/resource_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/resource_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/resource_helper.rb index 03816ed9f08..592a7821e21 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/resource_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/resource_helper.rb @@ -26,7 +26,7 @@ module ResourceHelper value = format_variation(measure(key), :period => @period, :default => '-', :style => 'none') else key = prefix + measure_name - value = measure(key).formatted_value + value = measure(key) ? measure(key).formatted_value : '0' end if options[:span] -- 2.39.5