diff options
-rw-r--r-- | libcrystfel/src/image-msgpack.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/image-msgpack.c b/libcrystfel/src/image-msgpack.c index 827b7724..38bafb0a 100644 --- a/libcrystfel/src/image-msgpack.c +++ b/libcrystfel/src/image-msgpack.c @@ -150,6 +150,11 @@ ImageFeatureList *image_msgpack_read_peaks(const DataTemplate *dtempl, return NULL; } + if ( dtempl->peak_list == NULL ) { + ERROR("You must set 'peak_list' in the geometry file.\n"); + return NULL; + } + msgpack_unpacked_init(&unpacked); r = msgpack_unpack_next(&unpacked, data_block, data_block_size, NULL); if ( r != MSGPACK_UNPACK_SUCCESS ) { |