Skip to content

Commit 3439aee

Browse files
committed
Fix null dereference (#8285)
1 parent d6345c0 commit 3439aee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/library/yql/minikql/comp_nodes/mkql_wide_combine.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,10 @@ class TSpillingSupportState : public TComputationValue<TSpillingSupportState> {
456456

457457
if (bucket.BucketState == TSpilledBucket::EBucketState::InMemory) {
458458
std::copy_n(ViewForKeyAndState.data(), KeyWidth, static_cast<NUdf::TUnboxedValue*>(bucket.InMemoryProcessingState->Tongue));
459+
460+
bool isNew = bucket.InMemoryProcessingState->TasteIt();
459461
Throat = bucket.InMemoryProcessingState->Throat;
460-
return bucket.InMemoryProcessingState->TasteIt()? ETasteResult::Init : ETasteResult::Update;
462+
return isNew ? ETasteResult::Init : ETasteResult::Update;
461463
}
462464

463465
// Prepare space for raw data

0 commit comments

Comments
 (0)