Skip to content

Commit

Permalink
Bug fix: Don't try to load first line of an empty list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinematics committed Jul 25, 2015
1 parent 5a5ed65 commit f63dcad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TallyCore/Votes/VoteConstructor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public Dictionary<VoteType, List<List<string>>> SeparateVoteTypes(List<string> p

postLines = postLines.Skip(basePlan.Count).ToList();

bpMatch = basePlanRegex.Match(postLines.First());
if (postLines.Count > 0)
bpMatch = basePlanRegex.Match(postLines.First());
}


Expand Down

0 comments on commit f63dcad

Please sign in to comment.