Corrected bad merge.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5625 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
delangel 2011-04-13 15:02:09 +00:00
parent 9134bf3129
commit 06b1497902
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ public class SelectVariants extends RodWalker<Integer, Integer> {
// if the genotype of any of the samples we're looking it is HET or HomVar, we write this variant
for (String sample : samples) {
Genotype g = compVC.getGenotype(sample);
if ( g.isHet() || g.isHomVar() ) {
if ( g != null && (g.isHet() || g.isHomVar()) ) {
vcfWriter.add(compVC, ref.getBase());
return 1;
}