Fixed logic: throw exception if contigs are NOT equal

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1827 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2009-10-14 02:48:44 +00:00
parent aeca14d052
commit 1b214c0de5
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
}
this.referenceBase = refBase;
} else {
if (contig.equals(this.contig))
if (!contig.equals(this.contig))
throw new IllegalArgumentException("The contig name has to be the same at a single locus");
if (position != this.position)
throw new IllegalArgumentException("The position has to be the same at a single locus");