Skip to content

Commit 5c49af9

Browse files
The TEvPQProxy::TEvAuthResultOk handler crashes (#20644)
2 parents 0337d2f + 2098087 commit 5c49af9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ydb/services/deprecated/persqueue_v0/grpc_pq_read_actor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,9 @@ void TReadSessionActor::Handle(V1::TEvPQProxy::TEvAuthResultOk::TPtr& ev, const
979979

980980
for (auto& [name, t] : ev->Get()->TopicAndTablets) {
981981
auto& topicHolder = Topics[t.TopicNameConverter->GetInternalName()];
982+
if (!topicHolder) {
983+
topicHolder = std::make_shared<TTopicHolder>();
984+
}
982985
topicHolder->TabletID = t.TabletID;
983986
topicHolder->CloudId = t.CloudId;
984987
topicHolder->DbId = t.DbId;

0 commit comments

Comments
 (0)