catch null output destinations earlier

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1843 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
aaron 2009-10-14 20:07:15 +00:00
parent 1f66738c8e
commit 727b69fce0
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,6 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
private VCFHeader mHeader = null;
private String mSource;
private String mReferenceName;
private final Map<String, String> mSampleNames = new HashMap<String, String>();
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");
}
/**