diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 17ce33f99..f32bef51b 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -47,6 +47,7 @@ module RepositoriesHelper def user_commit_rep(mail) user = User.find_by_mail(mail) + user.nil? ? User.find(2) : User.find_by_mail(mail) end def render_properties(properties)