]> source.dussan.org Git - sonarqube.git/commitdiff
Fix error log in timemachine page
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 15 Aug 2011 11:08:47 +0000 (13:08 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 15 Aug 2011 11:08:47 +0000 (13:08 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/timemachine_controller.rb

index 47d0d223998cda020a970c4f2e622af92affe110..30fae8bef84d67bacb694f5afd6ac81a3b3a9097 100644 (file)
@@ -29,6 +29,7 @@ class TimemachineController < ApplicationController
 
   def index
     @project = Project.by_key(params[:id])
+    return redirect_to home_url unless @project
     @snapshot=@project.last_snapshot
 
     return access_denied unless is_user?(@snapshot)