Handle the case where a walker is being run outside of the GATK framework, such as JUnit tests.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@222 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
hanna 2009-03-29 01:50:27 +00:00
parent cb6a3b7e55
commit 7c6455fe36
1 changed files with 9 additions and 3 deletions

View File

@ -25,9 +25,15 @@ public abstract class Walker<MapType, ReduceType> {
protected PrintStream err = null;
protected Walker() {
GenomeAnalysisTK.Instance.loadArgumentsIntoObject(this);
out = GenomeAnalysisTK.Instance.out;
err = GenomeAnalysisTK.Instance.err;
if( GenomeAnalysisTK.Instance != null ) {
GenomeAnalysisTK.Instance.loadArgumentsIntoObject(this);
out = GenomeAnalysisTK.Instance.out;
err = GenomeAnalysisTK.Instance.err;
}
else {
out = System.out;
err = System.err;
}
}
/**