data tree BUGFIX plugin store callback does not accept NULL value
@@ -63,6 +63,9 @@ lyd_value_store(const struct ly_ctx *ctx, struct lyd_value *val, const struct ly
struct ly_err_item *err = NULL;
uint32_t options = (dynamic && *dynamic ? LYPLG_TYPE_STORE_DYNAMIC : 0);
+ if (!value) {
+ value = "";
+ }
if (incomplete) {
*incomplete = 0;
}
