tree data BUGFIX error for opaque node without module
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c
index 196ab7d..a364562 100644
--- a/src/tree_data_helpers.c
+++ b/src/tree_data_helpers.c
@@ -536,8 +536,10 @@
opaq = (struct lyd_node_opaq *)node;
parent = lyd_parent(node);
- /* is always filled by parsers */
- LY_CHECK_ARG_RET(ctx, opaq->name.module_ns, LY_EINVAL);
+ if (!opaq->name.module_ns) {
+ LOGVAL(ctx, LYVE_REFERENCE, "Unknown module of node \"%s\".", opaq->name.name);
+ return LY_EVALID;
+ }
/* module */
switch (opaq->format) {