Don't let the genotypes map be null
This commit is contained in:
parent
f93a554b01
commit
518b3dd291
|
|
@ -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) )
|
||||
|
|
|
|||
Loading…
Reference in New Issue