From 04b122be2922868c77fa3826892ac15e653fc6a5 Mon Sep 17 00:00:00 2001 From: Eric Banks Date: Wed, 9 Nov 2011 20:33:36 -0500 Subject: [PATCH] Fix for bug reported on GetSatisfaction --- .../broadinstitute/sting/gatk/walkers/annotator/BaseCounts.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/BaseCounts.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/BaseCounts.java index 46aa6d0f3..761251259 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/BaseCounts.java +++ b/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/BaseCounts.java @@ -59,6 +59,8 @@ public class BaseCounts extends InfoFieldAnnotation { int[] counts = new int[4]; for ( Map.Entry sample : stratifiedContexts.entrySet() ) { + if ( !sample.getValue().hasBasePileup() ) + continue; for (byte base : sample.getValue().getBasePileup().getBases() ) { int index = BaseUtils.simpleBaseToBaseIndex(base); if ( index != -1 )