From ea0364329e17ee884938ceadca6de3833ef348cb Mon Sep 17 00:00:00 2001 From: Roy Jacobson Date: Tue, 4 Jul 2023 09:10:29 +0200 Subject: [PATCH] fix: null deref in debug log (#1513) --- src/server/engine_shard_set.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/engine_shard_set.cc b/src/server/engine_shard_set.cc index 6f73e012c..66a3aea74 100644 --- a/src/server/engine_shard_set.cc +++ b/src/server/engine_shard_set.cc @@ -310,7 +310,8 @@ void EngineShard::PollExecution(const char* context, Transaction* trans) { if (continuation_trans_->IsArmedInShard(sid)) { bool to_keep = continuation_trans_->RunInShard(this, false); - DVLOG(1) << "RunContTrans: " << continuation_trans_->DebugId() << " keep: " << to_keep; + DVLOG(1) << "RunContTrans: " << (continuation_trans_ ? continuation_trans_->DebugId() : "") + << " keep: " << to_keep; if (!to_keep) { continuation_trans_ = nullptr; }