Skip to content

Commit

Permalink
Fix NPE from unintialized logger in GenotypingEngine (#8159)
Browse files Browse the repository at this point in the history
* Fixes ##8158
  • Loading branch information
lbergelson committed Jan 12, 2023
1 parent 9f77b1f commit 43e2d04
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ protected GenotypingEngine(final Config configuration,
this.samples = samples;
this.doAlleleSpecificCalcs = doAlleleSpecificCalcs;
logger = LogManager.getLogger(getClass());
oneShotLogger = new OneShotLogger(logger);
numberOfGenomes = this.samples.numberOfSamples() * configuration.genotypeArgs.samplePloidy;
alleleFrequencyCalculator = AlleleFrequencyCalculator.makeCalculator(configuration.genotypeArgs);
}
Expand Down

0 comments on commit 43e2d04

Please sign in to comment.