diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/image-hdf5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c index 7d6363ac..767ef6ab 100644 --- a/libcrystfel/src/image-hdf5.c +++ b/libcrystfel/src/image-hdf5.c @@ -1066,6 +1066,11 @@ ImageFeatureList *image_hdf5_read_peaks_hdf5(const DataTemplate *dtempl, ImageFeatureList *features; double peak_offset = half_pixel_shift ? 0.5 : 0.0; + if ( dtempl->peak_list == NULL ) { + ERROR("Peak location is not given in geometry file.\n"); + return NULL; + } + if ( access(filename, R_OK) == -1 ) { ERROR("File does not exist or cannot be read: %s\n", filename); |