Fix nullPointerException

This commit is contained in:
Laura Gauthier 2014-08-07 10:00:14 -04:00
parent 0b72f7a16d
commit f532f1f843
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ public class InbreedingCoeff extends InfoFieldAnnotation implements StandardAnno
for ( final Genotype g : genotypes ) {
if ( g.isCalled() && g.hasLikelihoods() && g.getPloidy() == 2) // only work for diploid samples
sampleCount++;
else
continue;
final double[] normalizedLikelihoods = MathUtils.normalizeFromLog10( g.getLikelihoods().getAsVector() );
if (doMultiallelicMapping)
{