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();
|
||||
int counter = 0;
|
||||
|
||||
traversalEngine.startTimersIfNecessary();
|
||||
for (Shard shard : shardStrategy ) {
|
||||
if ( done || shard == null ) // we ran out of shards that aren't owned
|
||||
break;
|
||||
|
||||
traversalEngine.startTimersIfNecessary();
|
||||
if(shard.getShardType() == Shard.ShardType.LOCUS) {
|
||||
WindowMaker windowMaker = new WindowMaker(shard, engine.getGenomeLocParser(),
|
||||
getReadIterator(shard), shard.getGenomeLocs(), SampleUtils.getSAMFileSamples(engine));
|
||||
|
|
|
|||
Loading…
Reference in New Issue