plugins types FEATURE accept empty value
@@ -606,7 +606,11 @@ type_get_hints_base(uint32_t hints)
API LY_ERR
ly_type_check_hints(uint32_t hints, const char *value, size_t value_len, LY_DATA_TYPE type, int *base, struct ly_err_item **err)
{
- LY_CHECK_ARG_RET(NULL, value, err, LY_EINVAL);
+ LY_CHECK_ARG_RET(NULL, value || !value_len, err, LY_EINVAL);
+
+ if (!value) {
+ value = "";
+ }
switch (type) {
case LY_TYPE_UINT8:
