You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of json-values you are using
json-values version: 8.2.2
JVM version: 11
Describe the bug
When set operation is used on a composed lents, a NullPointerException happens using it over a JsObj where the complete lens path doesn't exist.
Version of json-values you are using
json-values version: 8.2.2
JVM version: 11
Describe the bug
When set operation is used on a composed lents, a NullPointerException happens using it over a JsObj where the complete lens path doesn't exist.
To Reproduce
Lens<JsObj, JsObj> calification = JsObj.lens.obj("calification");
Lens<JsObj, Boolean> validated = calification.compose(JsObj.lens.bool("isValidated"));
The set operation works find when the lens path exists. This is the case:
Expected behavior
Composed lens should works in the same way that a complete path lens. For example:
The text was updated successfully, but these errors were encountered: