aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/peaks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 21c1f2f3..a2ebeee7 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -641,6 +641,8 @@ void output_intensities(struct image *image, UnitCell *cell,
f = image_get_feature(image->features, i);
+ if ( f == NULL ) continue;
+
for ( j=0; j<image->n_hits; j++ ) {
double d;