From 61c29d550dafe35980bc9e6e44b4c168d7e3c8dd Mon Sep 17 00:00:00 2001 From: depristo Date: Thu, 27 Jan 2011 15:15:10 +0000 Subject: [PATCH] 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 --- .../org/broadinstitute/sting/gatk/executive/Accumulator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/broadinstitute/sting/gatk/executive/Accumulator.java b/java/src/org/broadinstitute/sting/gatk/executive/Accumulator.java index 3cdcaddcf..3e335733d 100755 --- a/java/src/org/broadinstitute/sting/gatk/executive/Accumulator.java +++ b/java/src/org/broadinstitute/sting/gatk/executive/Accumulator.java @@ -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; } }