Fix for NullPointer where a run starts but there's nothing to do (no shards) and reduceInit() wasn't being called correctly

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5096 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
depristo 2011-01-27 15:15:10 +00:00
parent f522eb2848
commit 61c29d550d
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ public abstract class Accumulator {
* The result of the traversal is the list of accumulated intervals.
*/
public Object finishTraversal() {
walker.onTraversalDone(accumulator);
walker.onTraversalDone(getReduceInit()); // must call getReduceInit to ensure that we get the accumulator value or the reduceInit value
return this.accumulator;
}
}