fix: null deref in debug log (#1513)

This commit is contained in:
Roy Jacobson 2023-07-04 09:10:29 +02:00 committed by GitHub
parent 177a21b266
commit ea0364329e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}