Merged bug fix from Stable into Unstable

This commit is contained in:
Guillermo del Angel 2012-08-01 10:56:45 -04:00
commit 9ac72dbd4d
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ public class GeneralPloidyIndelGenotypeLikelihoodsCalculationModel extends Gener
haplotypeMap.clear();
}
IndelGenotypeLikelihoodsCalculationModel.getHaplotypeMapFromAlleles(alleles, ref, ref.getLocus(), haplotypeMap);
// sanity check: if haplotype map couldn't be created, clear allele list
if (haplotypeMap.isEmpty())
alleles.clear();
return alleles;
}