diff options
-rw-r--r-- | libcrystfel/src/events.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 491f7811..c194d369 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -336,6 +336,8 @@ struct event *get_event_from_event_string(const char *ev_string) char *sep; char *start; + if ( ev_string == NULL ) return NULL; + ev_sep = strstr(ev_string, "//"); if ( ev_sep == NULL ) return NULL; |