diff options
-rw-r--r-- | libcrystfel/src/cell-utils.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c index 82b42b98..f6e189ad 100644 --- a/libcrystfel/src/cell-utils.c +++ b/libcrystfel/src/cell-utils.c @@ -213,6 +213,11 @@ void cell_print(UnitCell *cell) LatticeType lt; char cen; + if ( cell == NULL ) { + STATUS("(NULL cell)\n"); + return; + } + lt = cell_get_lattice_type(cell); cen = cell_get_centering(cell); @@ -253,8 +258,8 @@ void cell_print(UnitCell *cell) void cell_print_full(UnitCell *cell) { - cell_print(cell); + if ( cell == NULL ) return; if ( cell_has_parameters(cell) ) { |