aboutsummaryrefslogtreecommitdiff
path: root/src/render_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-14 20:14:35 -0700
committerThomas White <taw@physics.org>2012-02-22 15:26:50 +0100
commit7c9587d69305edd53487a61cc8f5a26cc1373638 (patch)
treed3e87ec6857de9d1894f1d820a47a8683d343d45 /src/render_hkl.c
parent3dfb25f06b3b58caf5a9b445d52a340fa2ab1afd (diff)
render_hkl: Abort if unit cell could not be loaded
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r--src/render_hkl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c
index 5c094cef..e8590096 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -477,6 +477,10 @@ int main(int argc, char *argv[])
infile = argv[optind];
cell = load_cell_from_pdb(pdb);
+ if ( cell == NULL ) {
+ ERROR("Couldn't load unit cell from %s\n", pdb);
+ return 1;
+ }
cts = new_list_count();
ref = read_reflections(infile, cts, NULL);
if ( ref == NULL ) {