aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-07 15:14:37 +0200
committerThomas White <taw@physics.org>2020-09-07 15:14:37 +0200
commit45bd7344d1afe460177b97d7a7fc87944ec7812b (patch)
treee8e3d31b6e8b3e5bbe8e844bbd05cb1fbc79300b /libcrystfel
parent9009aa0f54c327ff115bb838f0876a3a43495e5e (diff)
Catch another "NULL" event -> //
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/image-hdf5.c2
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;