Fix long-standing NPE in LMS due to inappropriate timing of initialization
This commit is contained in:
parent
a997c99806
commit
c822b7c760
|
|
@ -60,11 +60,12 @@ public class LinearMicroScheduler extends MicroScheduler {
|
||||||
|
|
||||||
boolean done = walker.isDone();
|
boolean done = walker.isDone();
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
||||||
|
traversalEngine.startTimersIfNecessary();
|
||||||
for (Shard shard : shardStrategy ) {
|
for (Shard shard : shardStrategy ) {
|
||||||
if ( done || shard == null ) // we ran out of shards that aren't owned
|
if ( done || shard == null ) // we ran out of shards that aren't owned
|
||||||
break;
|
break;
|
||||||
|
|
||||||
traversalEngine.startTimersIfNecessary();
|
|
||||||
if(shard.getShardType() == Shard.ShardType.LOCUS) {
|
if(shard.getShardType() == Shard.ShardType.LOCUS) {
|
||||||
WindowMaker windowMaker = new WindowMaker(shard, engine.getGenomeLocParser(),
|
WindowMaker windowMaker = new WindowMaker(shard, engine.getGenomeLocParser(),
|
||||||
getReadIterator(shard), shard.getGenomeLocs(), SampleUtils.getSAMFileSamples(engine));
|
getReadIterator(shard), shard.getGenomeLocs(), SampleUtils.getSAMFileSamples(engine));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue