aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-24 11:53:20 +0100
committerThomas White <taw@physics.org>2010-02-24 11:53:20 +0100
commit4cae1180965b83cfabb1e603bd64245f73b43067 (patch)
tree57f187ea66be0ca343498bb678dfb332cfcf96e9 /src/process_hkl.c
parent0fca55c11c285cd5f9d246cdee71665ff116b6df (diff)
Handle missing molecule.pdb a little better (can do better still, though)
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c4
1 files changed, 3 insertions, 1 deletions
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);