896: IndexError in diffviewer/views.py
- Duplicate
- Review Board
hee****@gmai***** (Google Code) (Is this you? Claim this profile.) | |
Feb. 25, 2009 | |
Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/ReviewBoard-1.0alpha4-py2.5.egg/reviewboard/diffviewer/views.py", line 141, in view_diff first_file = page.object_list[0] IndexError: list index out of range
This has already been reported in issue 892.
That looks similar, but it happens sonwhere else in file. It looks like you're accessing elements of an array without checking to see if they exist first. Just because you make the same mistake twice doesn't make it one bug. If they are separate issues, please fix both.