aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Mironov <mbkkt@ydb.tech>2025-02-16 20:18:05 +0300
committerGitHub <noreply@github.com>2025-02-16 20:18:05 +0300
commit7c2a68ce366705298c96dbdbdc50e9b6ae065399 (patch)
tree3726777f0738906649a337401788b22c3cdaba84
parenta6c5f95815ceaca6645ad0e197add8f436fb203a (diff)
downloadydb-7c2a68ce366705298c96dbdbdc50e9b6ae065399.tar.gz
Fix not null condition was is null (#14618)
-rw-r--r--ydb/core/kqp/provider/yql_kikimr_gateway.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/kqp/provider/yql_kikimr_gateway.h b/ydb/core/kqp/provider/yql_kikimr_gateway.h
index e8882b1c3c6..c45b1ceb959 100644
--- a/ydb/core/kqp/provider/yql_kikimr_gateway.h
+++ b/ydb/core/kqp/provider/yql_kikimr_gateway.h
@@ -556,10 +556,10 @@ struct TKikimrTableMetadata : public TThrRefBase {
for (const auto& _ : Indexes[i].GetImplTables()) {
YQL_ENSURE(it != message->GetSecondaryGlobalIndexMetadata().end());
if (implTable) {
- implTable = &ImplTables.emplace_back(MakeIntrusive<TKikimrTableMetadata>(&*it++));
- } else {
(*implTable)->Next = MakeIntrusive<TKikimrTableMetadata>(&*it++);
implTable = &(*implTable)->Next;
+ } else {
+ implTable = &ImplTables.emplace_back(MakeIntrusive<TKikimrTableMetadata>(&*it++));
}
}
}