Don't let the genotypes map be null

This commit is contained in:
Eric Banks 2011-08-22 15:10:30 -04:00
parent f93a554b01
commit 518b3dd291
1 changed files with 3 additions and 1 deletions

View File

@ -822,8 +822,10 @@ public class VariantContext implements Feature { // to enable tribble intergrati
// ---------------------------------------------------------------------------------------------------------
private void loadGenotypes() {
if ( !hasAttribute(UNPARSED_GENOTYPE_MAP_KEY) )
if ( !hasAttribute(UNPARSED_GENOTYPE_MAP_KEY) ) {
genotypes = NO_GENOTYPES;
return;
}
Object parserObj = getAttribute(UNPARSED_GENOTYPE_PARSER_KEY);
if ( parserObj == null || !(parserObj instanceof VCFParser) )