diff options
author | Thomas White <taw@physics.org> | 2018-09-28 09:57:40 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-09-28 09:57:40 +0200 |
commit | 2564ed5e2e5b6af3e2318a7d7886593365e8f5a8 (patch) | |
tree | 7d4b62a52178d7d7fe49d5ae9f682b65c1711db8 | |
parent | ffd48c0085f6f7a609079d0a4cfa2dd2a72c1e26 (diff) |
mosflm: Check for existence of unit cell before checking centering
-rw-r--r-- | libcrystfel/src/mosflm.c | 2 |
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 " |