scim2 icon indicating copy to clipboard operation
scim2 copied to clipboard

JsonUtils.replaceValue fails when given null value

Open hauntingEcho opened this issue 5 years ago • 0 comments

Describe the bug When a function which calls JsonUtils.replaceValue is given a null, an NullPointerException is thrown by UpdatingNodeVisitor when attempting to deepCopy() that null.

To Reproduce construct a GenericScimResource x and call x.setSchemaUrns(null).

Expected behavior the Schemas element is removed from the resource

Additional context This can be necessary to construct a PATCH operation on an overall Group object, in which you don't want to edit the schema URNs.

hauntingEcho avatar May 21 '19 17:05 hauntingEcho