Permalink
Browse files

Fix crash when viewing commit with mode change

  • Loading branch information...
1 parent cd89473 commit 98b5ff64c13c0ff1c1822237d5468186cdb0087b @kballard kballard committed Mar 22, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 CommitsController.rb
@@ -133,7 +133,7 @@ def update_main_document
li.setInnerHTML(%(<a href="#diff-#{i}" class="">#{diff.b_path}</a>))
file_list.appendChild(li)
- unless diff.deleted_file
+ unless diff.deleted_file or diff.diff.nil?
diff_div = doc.createElement('div')
diff_div.setAttribute__('class', 'diff')
diff_div.setAttribute__('id', "diff-#{i}")

0 comments on commit 98b5ff6

Please sign in to comment.