File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1919#include " eval/eval/direct_expression_step.h"
2020#include " eval/eval/evaluator_core.h"
2121#include " eval/eval/expression_step_base.h"
22- #include " eval/internal/errors.h"
2322#include " internal/status_macros.h"
2423#include " runtime/runtime_options.h"
2524#include " google/protobuf/arena.h"
@@ -158,13 +157,6 @@ absl::Status SelectStep::Evaluate(ExecutionFrame* frame) const {
158157 result_trail = trail.Step (&field_);
159158 }
160159
161- if (arg->Is <NullValue>()) {
162- frame->value_stack ().PopAndPush (
163- cel::ErrorValue (cel::runtime_internal::CreateError (" Message is NULL" )),
164- std::move (result_trail));
165- return absl::OkStatus ();
166- }
167-
168160 absl::optional<OptionalValue> optional_arg;
169161
170162 if (enable_optional_types_ && arg.IsOptional ()) {
@@ -354,10 +346,6 @@ class DirectSelectStep : public DirectExpressionStep {
354346 case ValueKind::kStruct :
355347 case ValueKind::kMap :
356348 break ;
357- case ValueKind::kNull :
358- result = cel::ErrorValue (
359- cel::runtime_internal::CreateError (" Message is NULL" ));
360- return absl::OkStatus ();
361349 default :
362350 if (optional_arg) {
363351 break ;
You can’t perform that action at this time.
0 commit comments