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:
parent
1f66738c8e
commit
727b69fce0
|
|
@ -20,7 +20,6 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
|
||||||
private VCFHeader mHeader = null;
|
private VCFHeader mHeader = null;
|
||||||
private String mSource;
|
private String mSource;
|
||||||
private String mReferenceName;
|
private String mReferenceName;
|
||||||
private final Map<String, String> mSampleNames = new HashMap<String, String>();
|
|
||||||
private boolean mInitialized = false;
|
private boolean mInitialized = false;
|
||||||
private final File mFile;
|
private final File mFile;
|
||||||
private final OutputStream mStream;
|
private final OutputStream mStream;
|
||||||
|
|
@ -29,6 +28,7 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
|
||||||
mReferenceName = referenceName;
|
mReferenceName = referenceName;
|
||||||
mSource = source;
|
mSource = source;
|
||||||
mFile = writeTo;
|
mFile = writeTo;
|
||||||
|
if (mFile == null) throw new RuntimeException("VCF output file must not be null");
|
||||||
mStream = null;
|
mStream = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,6 +37,8 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
|
||||||
mSource = source;
|
mSource = source;
|
||||||
mFile = null;
|
mFile = null;
|
||||||
mStream = writeTo;
|
mStream = writeTo;
|
||||||
|
if (mStream == null) throw new RuntimeException("VCF output stream must not be null");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue