aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ) {