diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 39c64720..502ce183 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -2050,6 +2050,11 @@ static int make_dataspaces(hid_t dh, struct event *ev, hid_t *memspace, int ndims; int i; + if ( ev == NULL ) { + ERROR("Can't make dataspaces: no event ID\n"); + return 1; + } + /* Check that there are at least as many dim entries as dimensions */ sh = H5Dget_space(dh); ndims = H5Sget_simple_extent_ndims(sh); |