Skip to content

Commit

Permalink
fixes HUDSON-5152: RailsStatsParser gives blank reports. Patch by Ada…
Browse files Browse the repository at this point in the history
…m Stegman.

git-svn-id: https://svn.dev.java.net/svn/hudson/trunk/hudson/plugins/rubyMetrics@25000 71c3de6d-444a-0410-be80-ed276b4c234a
  • Loading branch information
calavera committed Dec 28, 2009
1 parent afeedb1 commit 7b4539a
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -30,7 +30,10 @@ public RailsStatsResults parse(String output) {
lines = removeSeparators(lines);

Iterator<String> linesIterator = lines.iterator();
String[] header = cleanArray(linesIterator.next().split("[|]+")); //report header
String[] header = new String[1];
while (header.length < 2 && linesIterator.hasNext()) {
header = cleanArray(linesIterator.next().split("[|]+")); //report header
}

while (linesIterator.hasNext()) {
String line = linesIterator.next();
Expand Down

0 comments on commit 7b4539a

Please sign in to comment.