From 7c9587d69305edd53487a61cc8f5a26cc1373638 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 14 Jun 2010 20:14:35 -0700 Subject: render_hkl: Abort if unit cell could not be loaded --- src/render_hkl.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ) { -- cgit v1.2.3