diff --git a/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFGenotypeWriterAdapter.java b/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFGenotypeWriterAdapter.java index 0a9025bd4..6e1251dae 100644 --- a/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFGenotypeWriterAdapter.java +++ b/java/src/org/broadinstitute/sting/utils/genotype/vcf/VCFGenotypeWriterAdapter.java @@ -20,7 +20,6 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter { private VCFHeader mHeader = null; private String mSource; private String mReferenceName; - private final Map mSampleNames = new HashMap(); private boolean mInitialized = false; private final File mFile; private final OutputStream mStream; @@ -29,6 +28,7 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter { mReferenceName = referenceName; mSource = source; mFile = writeTo; + if (mFile == null) throw new RuntimeException("VCF output file must not be null"); mStream = null; } @@ -37,6 +37,8 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter { mSource = source; mFile = null; mStream = writeTo; + if (mStream == null) throw new RuntimeException("VCF output stream must not be null"); + } /**