Only create the genotype map when necessary
This commit is contained in:
parent
c4c90c8826
commit
dc42571dd9
|
|
@ -823,6 +823,7 @@ public class VariantContext implements Feature { // to enable tribble intergrati
|
||||||
|
|
||||||
private void loadGenotypes() {
|
private void loadGenotypes() {
|
||||||
if ( !hasAttribute(UNPARSED_GENOTYPE_MAP_KEY) ) {
|
if ( !hasAttribute(UNPARSED_GENOTYPE_MAP_KEY) ) {
|
||||||
|
if ( genotypes == null )
|
||||||
genotypes = NO_GENOTYPES;
|
genotypes = NO_GENOTYPES;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue