Merge pull request #3132 from joelmoniz/bugfix-brokenContribHampersManager

Contrib Manager does not stop parsing contribs.txt if an error exists
This commit is contained in:
Ben Fry
2015-03-30 11:12:29 -04:00

View File

@@ -515,7 +515,13 @@ public class ContributionListing {
ContributionType contribType = ContributionType.fromName(type);
if (contribType == null) {
System.err.println("Error in contribution listing file on line " + (start+1));
return outgoing;
// Scan forward for the next blank line
int end = ++start;
while (end < lines.length && !lines[end].equals("")) {
end++;
}
start = end + 1;
continue;
}
// Scan forward for the next blank line