summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-18 18:58:33 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-18 18:58:33 +0300
commit60bb35161741338e585feedf09538f5935bba271 (patch)
tree16b5f2d3452210b2be232b0bae0ddfbb968ec460
parent4e5b3d9aaebd420fc95152540a664a17ec3019e7 (diff)
downloadgitlab-ce-60bb35161741338e585feedf09538f5935bba271.tar.gz
Prevent page crash if failed to parse graphs data
-rw-r--r--app/controllers/graphs_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/graphs_controller.rb b/app/controllers/graphs_controller.rb
index 5ae9c15c0f7..6c2ac5fcbf4 100644
--- a/app/controllers/graphs_controller.rb
+++ b/app/controllers/graphs_controller.rb
@@ -10,7 +10,7 @@ class GraphsController < ProjectResourceController
format.js do
@repo = @project.repository
@stats = Gitlab::Git::GitStats.new(@repo.raw, @repo.root_ref)
- @log = @stats.parsed_log.to_json
+ @log = @stats.parsed_log.to_json rescue []
end
end
end