Skip to content

Commit 1ef66d4

Browse files
committed
xpath BUGFIX opaque node handling
Fixes #2144
1 parent 6034142 commit 1ef66d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ get_node_pos(const struct lyd_node *node, enum lyxp_node_type node_type, const s
14821482
LYD_TREE_DFS_continue = 0;
14831483
}
14841484

1485-
if ((root_type == LYXP_NODE_ROOT_CONFIG) && (elem->schema->flags & LYS_CONFIG_R)) {
1485+
if ((root_type == LYXP_NODE_ROOT_CONFIG) && elem->schema && (elem->schema->flags & LYS_CONFIG_R)) {
14861486
/* skip */
14871487
LYD_TREE_DFS_continue = 1;
14881488
} else {

0 commit comments

Comments
 (0)