summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-04-23 14:54:30 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-04-23 14:54:30 +0200
commit787a3da8eb436fb8e2bd022319112325222711e2 (patch)
tree24ddc27c62b57191f50dec68b3a03a035c3b547d /sonar-server
parenta4061d9dc28fd34f376636dfa35d805052430a64 (diff)
downloadsonarqube-787a3da8eb436fb8e2bd022319112325222711e2.tar.gz
sonarqube-787a3da8eb436fb8e2bd022319112325222711e2.zip
SONAR-3893 Fixed uncaught error when no source is available
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
index 85b20025986..d9b6fb8d00e 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
@@ -162,7 +162,7 @@ class ResourceController < ApplicationController
@display_manual_violation_form=(current_user && has_role?(:user, @snapshot))
panel = get_html_source_panel(@snapshot, {:display_scm => true})
- @lines = panel.html_lines
+ @lines = panel.html_lines unless panel.nil?
end
def init_scm