From 855be9e57a660473ae43a189d6e8f2cb792321b3 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 22 Sep 2017 11:13:04 +0200 Subject: Stop if an indexing method can't be prepared --- libcrystfel/src/index.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libcrystfel/src/index.c') diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 225f55c1..17153976 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -326,6 +326,9 @@ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell, ipriv->engine_private[i] = prepare_method(&methods[i], cell, det, ltl, options); + + if ( ipriv->engine_private[i] == NULL ) return NULL; + for ( j=0; j