Hi everyone!
I'm struggling to find an answer to this issue and i keep receiving the error
Cannot invoke "Object.getClass()" because "value" is null
The problem occurs when I have an object - in this case error - that may or may not exist but I need to check for the existence of a sub-field within that object.
"if" : "ctx.error?.containsKey('code')"
This works when the error object exists but the field code does not exist, but fails when the entire error object is absent, with the above error.
Anyone know how to resolve?
Many thanks in advance.