diff options
-rw-r--r-- | libcrystfel/src/peaks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index f13c7245..7ab194c7 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -704,6 +704,8 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub, int first = 1; int **bgMasks; + if ( num_reflections(image->reflections) == 0 ) return; + il = sort_reflections(image->reflections, image->indexed_cell, &n); if ( il == NULL ) { ERROR("Couldn't sort reflections\n"); |