Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1564 by lonico: javascript error: Error: 'rows[...]' is null or not an object in diffviewer, prevents file diffs to be shown (spinning wheel)

*NOTE: Do not post confidential information in this bug report.*

What version are you running?

1.5 Beta 1

A Runtime Error has occurred.
Do you wish to Debug?

Line: 798
Error: 'rows[...]' is null or not an object
Yes   No

What's the URL of the page containing the problem?

What steps will reproduce the problem?
0. Keep note of a line number at the end of a diff chunk, just before a
collapsed section
1. Expand the diffs.
2. Select lines that span the 'visible' chunk and the now expanded chunk.
3. Enter a comment
4. Save/publish the comment
5. Switch to the diff view

What is the expected output? What do you see instead?

Would expect to see diffs for all files

With IE an error pop-up is displayed.  (See above)

With Firefox, Google Chrome of IE, only the diffs up to the comments are
displayed.  The diffs for the remaining files are not shown, and a spinning
wheel keeps spinning forever.

What operating system are you using? What browser?

Windows XP, Firefox, Chrome, IE

Please provide any additional information below.

The problem is on line 798.  endRow is out of range, with a value of 32
while high is 31 and table.rows.length is 31.  As a result,
table.rows[endRow] is undefined.

I'll propose a small patch testing for this condition, but I wonder if this
piece of code is really needed

796 if (endRow != undefined) {
797 /* See if we got lucky and found it in the last row. */
798    if (parseInt(table.rows[endRow].getAttribute('line')) == linenum) {
799 return table.rows[endRow];
800 }

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to