Contrib Manager parses whole contribs.txt irrespective of errors

Implemented as per @prisonerjohn 's suggestion at https://github.com/processing/processing/issues/2953#issuecomment-71921649
This commit is contained in:
Joel Moniz
2015-02-27 19:45:53 +05:30
parent f14bc38ed8
commit 7959ae6462

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