diff options
-rw-r--r-- | src/index.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c index 1d737e7e..4bc74b82 100644 --- a/src/index.c +++ b/src/index.c @@ -143,6 +143,11 @@ void index_pattern(struct image *image, IndexingMethod indm) if ( indm == INDEXING_NONE ) return; if ( indm == INDEXING_DIRAX ) run_dirax(image); + if ( image->indexed_cell == NULL ) { + STATUS("No cell found.\n"); + return; + } + new_cell = match_cell(image->indexed_cell, image->molecule->cell); free(image->indexed_cell); |