Only create the genotype map when necessary

This commit is contained in:
Eric Banks 2011-08-22 15:40:36 -04:00
parent c4c90c8826
commit dc42571dd9
1 changed files with 2 additions and 1 deletions

View File

@ -823,7 +823,8 @@ public class VariantContext implements Feature { // to enable tribble intergrati
private void loadGenotypes() {
if ( !hasAttribute(UNPARSED_GENOTYPE_MAP_KEY) ) {
genotypes = NO_GENOTYPES;
if ( genotypes == null )
genotypes = NO_GENOTYPES;
return;
}