diff options
Diffstat (limited to 'libcrystfel/src/cell-utils.c')
-rw-r--r-- | libcrystfel/src/cell-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c index 43cf4337..9676aade 100644 --- a/libcrystfel/src/cell-utils.c +++ b/libcrystfel/src/cell-utils.c @@ -606,10 +606,12 @@ UnitCell *match_cell(UnitCell *cell_in, UnitCell *template_in, int verbose, /* "Un-center" the template unit cell to make the comparison easier */ template = uncenter_cell(template_in, &uncentering); + if ( template == NULL ) return NULL; /* The candidate cell is also uncentered, because it might be centered * if it came from (e.g.) MOSFLM */ cell = uncenter_cell(cell_in, NULL); + if ( cell == NULL ) return NULL; if ( cell_get_reciprocal(template, &asx, &asy, &asz, &bsx, &bsy, &bsz, |