aboutsummaryrefslogtreecommitdiff
path: root/julia
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-02-21 11:13:19 +0100
committerThomas White <taw@physics.org>2024-02-21 11:13:19 +0100
commitc75b2030b9c040c07c507f47822257879399e85d (patch)
tree179fe5316d1d8e1b8d62c3ffcc48f25d7be0fb2c /julia
parente1d77b345190f43eec2cc53684e0ded6b1939cd7 (diff)
Julia: RefList: Return nothing if no reflections in list
Diffstat (limited to 'julia')
-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[])