aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/mosflm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c
index cc71dc65..d48dcef2 100644
--- a/libcrystfel/src/mosflm.c
+++ b/libcrystfel/src/mosflm.c
@@ -846,7 +846,7 @@ void *mosflm_prepare(IndexingMethod *indm, UnitCell *cell)
*indm &= INDEXING_METHOD_MASK
| INDEXING_USE_LATTICE_TYPE | INDEXING_USE_CELL_PARAMETERS;
- if ( (cell_get_centering(cell) == 'I')
+ if ( (cell != NULL) && (cell_get_centering(cell) == 'I')
&& (cell_get_lattice_type(cell) == L_MONOCLINIC) )
{
ERROR("WARNING: Mosflm always gives the monoclinic C cell in "