diff --git a/Project.toml b/Project.toml index 19cc98b..1f031ee 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "XAM" uuid = "d759349c-bcba-11e9-07c2-5b90f8f05f7c" authors = ["Kenta Sato ", "Ben J. Ward ", "CiarĂ¡n O'Mara "] -version = "0.2.3" +version = "0.2.4" [deps] Automa = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b" diff --git a/src/bam/overlap.jl b/src/bam/overlap.jl index bb7b3c1..c6cf8ac 100644 --- a/src/bam/overlap.jl +++ b/src/bam/overlap.jl @@ -47,7 +47,7 @@ end function Base.iterate(iter::OverlapIterator) refindex = findfirst(isequal(iter.refname), iter.reader.refseqnames) - if refindex == 0 + if refindex === nothing throw(ArgumentError("sequence name $(iter.refname) is not found in the header")) end @assert iter.reader.index !== nothing