kjkmadness 2014-02-27
code: fix a bug occurring when a commit contains large contents.
@c61e71e5c030e95c432959c5b3fc15d63913f58f
app/views/partial_filediff.scala.html
--- app/views/partial_filediff.scala.html
+++ app/views/partial_filediff.scala.html
@@ -24,6 +24,7 @@
     <tr><td class="linenum"><div class="line-number" data-line-num="@diff.oldMode"></div><span class="hidden">@diff.oldMode</span></td><td class="linenum"><div class="line-number" data-line-num="@diff.newMode"></div><span class="hidden">@diff.newMode</span></td><td class="isBinary">@Messages("code.fileModeChanged")</td></tr>
   }
   @diff.getHunks match {
+    case null => { <tr><td colspan=3>@Messages("code.skipDiff")</td></tr> }
     case hunks: FileDiff.SizeExceededHunks => { <tr><td colspan=3>@Messages("code.tooBigDiff")</td></tr> }
     case hunks if (hunks.size <= 0) => {
       @diff.isFileModeChanged match {
Add a comment
List