diff options
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/image-hdf5.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |