fixed the case when you're not seeking, it didn't initalize

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@456 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
aaron 2009-04-16 22:16:03 +00:00
parent f47f640df6
commit e5c80e59dc
1 changed files with 3 additions and 0 deletions

View File

@ -111,6 +111,9 @@ public class MergingSamRecordIterator2 implements CloseableIterator<SAMRecord>,
/** Returns true if any of the underlying iterators has more records, otherwise false. */
public synchronized boolean hasNext() {
if (!initialized) {
lazyInitialization();
}
return !this.pq.isEmpty();
}