From 6d4420d686800568ddf3210e3f4e66c914944088 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 14 Jun 2010 18:50:33 -0700 Subject: Skip invalid peaks when counting --- src/peaks.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; jn_hits; j++ ) { double d; -- cgit v1.2.3