From 45bd7344d1afe460177b97d7a7fc87944ec7812b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 7 Sep 2020 15:14:37 +0200 Subject: Catch another "NULL" event -> // --- libcrystfel/src/image-hdf5.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcrystfel') diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c index 653057eb..3ba2178a 100644 --- a/libcrystfel/src/image-hdf5.c +++ b/libcrystfel/src/image-hdf5.c @@ -152,6 +152,8 @@ int *read_dim_parts(const char *ev_orig, int *pn_dvals) char *start; int done; + if ( ev_orig == NULL ) ev_orig = "//"; + /* Valid event ID? (Just the part after //, please) */ ev = strstr(ev_orig, "//"); if ( ev == NULL ) return NULL; -- cgit v1.2.3