diff --git a/src/jrd/event.cpp b/src/jrd/event.cpp index 6a519e333a..7cff5b4808 100644 --- a/src/jrd/event.cpp +++ b/src/jrd/event.cpp @@ -278,7 +278,7 @@ SLONG EventManager::queEvents(SLONG session_id, // Sanity check - if (events[0] != EPB_version1) + if (events_length && (!events || events[0] != EPB_version1)) { Firebird::Arg::Gds(isc_bad_epb_form).raise(); }