Skip to content

Commit 7c2a68c

Browse files
authored
Fix not null condition was is null (#14618)
1 parent a6c5f95 commit 7c2a68c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/core/kqp/provider/yql_kikimr_gateway.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,10 @@ struct TKikimrTableMetadata : public TThrRefBase {
556556
for (const auto& _ : Indexes[i].GetImplTables()) {
557557
YQL_ENSURE(it != message->GetSecondaryGlobalIndexMetadata().end());
558558
if (implTable) {
559-
implTable = &ImplTables.emplace_back(MakeIntrusive<TKikimrTableMetadata>(&*it++));
560-
} else {
561559
(*implTable)->Next = MakeIntrusive<TKikimrTableMetadata>(&*it++);
562560
implTable = &(*implTable)->Next;
561+
} else {
562+
implTable = &ImplTables.emplace_back(MakeIntrusive<TKikimrTableMetadata>(&*it++));
563563
}
564564
}
565565
}

0 commit comments

Comments
 (0)