From: Jean-Philippe Lang Date: Sun, 8 Jun 2008 15:47:55 +0000 (+0000) Subject: Don't search for the changeset if revision identifier is nil. X-Git-Tag: 0.8.0-RC1~469 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=731d15fe9b29a28362fff19ed7dad9df2516d73b;p=redmine.git Don't search for the changeset if revision identifier is nil. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1512 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/_dir_list_content.rhtml b/app/views/repositories/_dir_list_content.rhtml index 3564e52ab..c3bd56e09 100644 --- a/app/views/repositories/_dir_list_content.rhtml +++ b/app/views/repositories/_dir_list_content.rhtml @@ -26,7 +26,7 @@ end %> <%= link_to(format_revision(entry.lastrev.name), :action => 'revision', :id => @project, :rev => entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %> <%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %> <%=h(entry.lastrev.author.to_s.split('<').first) if entry.lastrev %> -<% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev %> +<% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %> <%=h truncate(changeset.comments, 50) unless changeset.nil? %> <% end %>