From b7a3d1e61f8609283395891ca5170b135d461574 Mon Sep 17 00:00:00 2001 From: ebanks Date: Thu, 8 Jul 2010 04:41:40 +0000 Subject: [PATCH] Bug fix: if the FORMAT field consisted of just GT, we were exceptioning out. How did we not catch this until now? git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3735 348d0f76-0448-11de-a6fe-93d51630548a --- .../sting/gatk/refdata/features/vcf4/VCF4Codec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/broadinstitute/sting/gatk/refdata/features/vcf4/VCF4Codec.java b/java/src/org/broadinstitute/sting/gatk/refdata/features/vcf4/VCF4Codec.java index 11d5908f5..9dba4601d 100644 --- a/java/src/org/broadinstitute/sting/gatk/refdata/features/vcf4/VCF4Codec.java +++ b/java/src/org/broadinstitute/sting/gatk/refdata/features/vcf4/VCF4Codec.java @@ -448,7 +448,7 @@ public class VCF4Codec implements FeatureCodec, NameAwareCodec { throw new VCFParserException("Too few keys for compared to the value string " + sampleName + ", keys = " + parts[8] + " values = " + parts[genotypeOffset]); int genotypeAlleleLocation = -1; - if (nGTKeys > 1) { + if (nGTKeys >= 1) { gtAttributes = new HashMap(nGTKeys - 1); for (int i = 0; i < nGTKeys; i++) { if (i >= GTValueSplitSize)