printer tree BUGFIX possible invalid memory access
@@ -3974,7 +3974,7 @@ trm_nodeid_target_is_local(const struct lysp_node_augment *pn, const struct lysp
ly_parse_nodeid(&id, &prefix, &prefix_len, &name, &name_len);
if (prefix) {
mod = ly_resolve_prefix(pmod->mod->ctx, prefix, prefix_len, LY_VALUE_SCHEMA, pmod);
- ret = mod->parsed == pmod;
+ ret = mod ? (mod->parsed == pmod) : 0;
} else {
ret = 1;
}
