diff options
-rw-r--r-- | src/merge.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/merge.c b/src/merge.c index 97d7762c..9ff64b57 100644 --- a/src/merge.c +++ b/src/merge.c @@ -205,6 +205,11 @@ RefList *merge_intensities(Crystal **crystals, int n, int n_threads, Reflection *refl; RefListIterator *iter; + if ( n == 0 ) { + ERROR("No crystals!\n"); + return NULL; + } + full = reflist_new(); qargs.full = full; |