From 4cae1180965b83cfabb1e603bd64245f73b43067 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 24 Feb 2010 11:53:20 +0100 Subject: Handle missing molecule.pdb a little better (can do better still, though) --- src/process_hkl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/process_hkl.c') diff --git a/src/process_hkl.c b/src/process_hkl.c index 12427a1a..abb4422f 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -337,7 +337,9 @@ int main(int argc, char *argv[]) } if ( output != NULL ) { - write_reflections(output, counts, ref, 0, mol->cell); + UnitCell *cell = NULL; + if ( mol != NULL ) cell = mol->cell; + write_reflections(output, counts, ref, 0, cell); } STATUS("There were %u patterns.\n", n_patterns); -- cgit v1.2.3