diff options
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r-- | src/crystfel_gui.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index aba46e9a..f5009d01 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -139,6 +139,7 @@ static void update_peaks(struct crystfelproject *proj) if ( proj->n_frames == 0 ) return; image = crystfel_image_view_get_image_struct(CRYSTFEL_IMAGE_VIEW(proj->imageview)); + if ( image == NULL ) return; search_peaks(image, proj->peak_search_params.threshold, proj->peak_search_params.min_sq_gradient, |