Skip to content

Commit 4576fb4

Browse files
authored
Merge e33ccb4 into dcfc568
2 parents dcfc568 + e33ccb4 commit 4576fb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/library/binary_json/write.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ template <typename TOnDemandValue>
600600
case simdjson::ondemand::json_type::null: {
601601
auto is_null = value.is_null();
602602
RETURN_IF_NOT_SUCCESS(is_null.error());
603-
Y_ABORT_UNLESS(is_null.value_unsafe());
603+
if (!is_null.value_unsafe()) {
604+
return simdjson::error_code::N_ATOM_ERROR;
605+
}
604606
callbacks.OnNull();
605607
break;
606608
}

0 commit comments

Comments
 (0)