Commit 1ad1c8af authored by Thomas White's avatar Thomas White
Browse files

Catch NULL event in make_dataspaces

parent e5e0e07a
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment