diff options
Diffstat (limited to 'libcrystfel/src/events.c')
-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 d40d2021..b008eee6 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -239,6 +239,8 @@ int find_event(struct event *ev, struct event_list *el) { int i; + if ( ev == NULL ) return el->num_events; + for ( i=0; i<el->num_events; i++ ) { if ( events_equal(ev, el->events[i]) ) return i; } |