aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-14 18:50:33 -0700
committerThomas White <taw@physics.org>2012-02-22 15:26:50 +0100
commit6d4420d686800568ddf3210e3f4e66c914944088 (patch)
treeeb5a254d1f0829845dc3e25192b35c46ada150a7 /src/peaks.c
parent5eab7bd36ab60f2f1b239f421b8616133703f414 (diff)
Skip invalid peaks when counting
Diffstat (limited to 'src/peaks.c')
-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;