aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--julia/CrystFEL/src/reflists.jl2
1 files changed, 1 insertions, 1 deletions
diff --git a/julia/CrystFEL/src/reflists.jl b/julia/CrystFEL/src/reflists.jl
index 901162e8..d922bdae 100644
--- a/julia/CrystFEL/src/reflists.jl
+++ b/julia/CrystFEL/src/reflists.jl
@@ -55,7 +55,7 @@ function Base.iterate(reflist::RefList{T}) where T
reflist.internalptr, rli)
if refl == C_NULL
- throw(ArgumentError("Failed to find first reflection in list"))
+ return nothing # no reflections!
end
iter = RefListIterator(refl,rli[])