diff options
author | Thomas White <taw@physics.org> | 2017-09-22 11:13:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-09-22 11:13:04 +0200 |
commit | 855be9e57a660473ae43a189d6e8f2cb792321b3 (patch) | |
tree | 39ead8dc2cf7563dca27a16a90d490f360d54be8 /libcrystfel | |
parent | 828dc729a87f9b26bd93304a03ff3447e4065e53 (diff) |
Stop if an indexing method can't be prepared
Diffstat (limited to 'libcrystfel')
-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"); |