diff options
-rw-r--r-- | libcrystfel/src/index.c | 3 |
1 files changed, 3 insertions, 0 deletions
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<i; j++ ) { if ( methods[i] == methods[j] ) { ERROR("Duplicate indexing method.\n"); |