aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-01-22 16:10:54 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commitc572f2b38a92fbe25ddf8ae2258fce02c2bdbedd (patch)
tree01c4429a39b8bc6573b4b645e87b2881b79e8289 /src/partialator.c
parent04488edf99249ebe95bf6c7f3a18b67cb74576bb (diff)
partialator: Stop if reference reflection list can't be loaded
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/partialator.c b/src/partialator.c
index fa9c3ee9..b6050c7f 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -1069,6 +1069,10 @@ int main(int argc, char *argv[])
if ( rfile != NULL ) {
RefList *rread;
rread = read_reflections(rfile);
+ if ( rread == NULL ) {
+ ERROR("Failed to read reference reflections\n");
+ return 1;
+ }
reference = asymmetric_indices(rread, sym);
reflist_free(rread);
ERROR("WARNING: Using an external reference.\n");