xpath BUGFIX opaque nodes have no XPath position
Fixes
@@ -1360,7 +1360,7 @@ dfs_search:
LYD_TREE_DFS_continue = 0;
}
- if ((root_type == LYXP_NODE_ROOT_CONFIG) && (elem->schema->flags & LYS_CONFIG_R)) {
+ if (!elem->schema || ((root_type == LYXP_NODE_ROOT_CONFIG) && (elem->schema->flags & LYS_CONFIG_R))) {
/* skip */
LYD_TREE_DFS_continue = 1;
} else {
