aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/post-refinement.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 2566bf2d..47bf16e7 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -656,6 +656,7 @@ static void write_grid(Crystal *cr, const RefList *full,
int i;
min = setup_minimiser(cr, full, 0, serial, scaleflags, &priv);
+ if ( min == NULL ) return;
idx1 = 99;
idx2 = 99;