diff options
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c index 554c099d..ddb25eb4 100644 --- a/src/index.c +++ b/src/index.c @@ -128,6 +128,8 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm, int i; int n = 0; + if ( indm == NULL ) return; + map_all_peaks(image); while ( indm[n] != INDEXING_NONE ) { |