Skip to content

Commit

Permalink
Added ensure Node != nullptr. (ydb-platform#8855)
Browse files Browse the repository at this point in the history
  • Loading branch information
pashandor789 authored Sep 9, 2024
1 parent b9760d3 commit 4d73159
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ydb/library/yql/minikql/mkql_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,8 @@ inline TTypeBase::TTypeBase(EKind kind, TTypeType* type, bool supportsPresort)


inline TType* TRuntimeNode::GetStaticType() const {
MKQL_ENSURE(GetNode() != nullptr, "Node is a nullptr value");

if (IsImmediate()) {
return GetNode()->GetGenericType();
} else {
Expand Down

0 comments on commit 4d73159

Please sign in to comment.