diff --git a/server/modules/routing/binlogrouter/blr_file.c b/server/modules/routing/binlogrouter/blr_file.c index 31a2b220b..c4d80905d 100644 --- a/server/modules/routing/binlogrouter/blr_file.c +++ b/server/modules/routing/binlogrouter/blr_file.c @@ -1985,7 +1985,8 @@ blr_read_events_all_events(ROUTER_INSTANCE *router, } /* Find and report Transaction start for event replacing only */ - if (action->pos > 4 && + if (action && + action->pos > 4 && action->replace_trx && pos == action->pos && pending_transaction)