Skip to content

Commit 081405f

Browse files
committed
Fix schema tree issue
1 parent a82ed4f commit 081405f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/core/src/clp/ffi/SchemaTree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ auto SchemaTree::get_node(Node::id_t id) const -> Node const& {
2222
auto SchemaTree::try_get_node_id(NodeLocator const& locator) const -> std::optional<Node::id_t> {
2323
auto const parent_id{static_cast<size_t>(locator.get_parent_id())};
2424
if (m_tree_nodes.size() <= parent_id) {
25-
return false;
25+
return std::nullopt;
2626
}
2727
std::optional<Node::id_t> node_id;
2828
for (auto const child_id : m_tree_nodes[parent_id].get_children_ids()) {

0 commit comments

Comments
 (0)