Skip to content
Browse files

fix small bug where calling first() on empty list will fail.

  • Loading branch information...
1 parent 3db38d5 commit 81e21c93c815525ea44d838499d882304d187082 @dominiqueplante dominiqueplante committed Apr 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/SWTOR.Parser/Analyzer.cs
View
2 src/SWTOR.Parser/Analyzer.cs
@@ -41,7 +41,7 @@ private List<DpsPerCharacter> FillEmptyDataPoints(List<DpsPerCharacter> list)
var allIntervals = list.Select(m => m.interval).Distinct().OrderBy(m => m).ToList();
// Fill in missing intervals
- var lastInterval = allIntervals.First();
+ var lastInterval = allIntervals.FirstOrDefault();
foreach (var interval in allIntervals.OrderBy(m => m))
{
int diff = interval - lastInterval;

0 comments on commit 81e21c9

Please sign in to comment.
Something went wrong with that request. Please try again.