diff options
-rw-r--r-- | libcrystfel/src/events.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 24342baf..c8b6ba9d 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -525,6 +525,11 @@ char *retrieve_full_path(struct event *ev, const char *data) char *return_value; char *pholder; + if ( data == NULL ) { + ERROR("HDF5 location must not be NULL\n"); + return NULL; + } + return_value = strdup(data); pholder = strstr(return_value, "%"); ei = 0; |