Add missing optional check to property store
Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2767
This commit is contained in:
parent
4d2eda398f
commit
7d9f741ceb
@ -390,6 +390,7 @@ std::optional<std::pair<Type, Size>> EncodePropertyValue(
|
||||
}
|
||||
case PropertyValue::Type::Double: {
|
||||
auto size = writer->WriteDouble(value.ValueDouble());
|
||||
if (!size) return std::nullopt;
|
||||
return {{Type::DOUBLE, *size}};
|
||||
}
|
||||
case PropertyValue::Type::String: {
|
||||
|
Loading…
Reference in New Issue
Block a user