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