timorris / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

ErrorJson throws IndexOutOfRangeException #279

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Clicking the JSON link throws an exception

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

What version of the product are you using? On what operating system?
Current revision 61.

Please provide any additional information below.
Fixed locally by changing Line 167 from Enumerable.Range(1, collection.Count) 
to Enumerable.Range(0, collection.Count-1)

Original issue reported on code.google.com by MrStimp...@gmail.com on 27 Feb 2012 at 4:53

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 27 Feb 2012 at 8:19

GoogleCodeExporter commented 9 years ago
fyi I was new to Enumerable.Range() and mistook the 2nd param as "end" rather 
than count. Should be Enumerable.Range(0, collection.Count) I believe.

Original comment by MrStimp...@gmail.com on 27 Feb 2012 at 8:21

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 5775dba21e87.

Original comment by azizatif on 27 Feb 2012 at 8:21

GoogleCodeExporter commented 9 years ago
No worries. I realized that and didn't take that part of the fix. ;) Thanks for 
reporting.

Original comment by azizatif on 27 Feb 2012 at 8:23